tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Bootstrap check
Hi all,
attached is a patch to check that the work directory doesn't exist for
the bootstrap. Is this too aggressive?
Joerg
Index: bootstrap
===================================================================
RCS file: /home/joerg/repo/netbsd/pkgsrc/bootstrap/bootstrap,v
retrieving revision 1.142
diff -u -p -r1.142 bootstrap
--- bootstrap 6 Apr 2009 14:21:05 -0000 1.142
+++ bootstrap 8 Apr 2009 21:53:34 -0000
@@ -692,6 +692,11 @@ check_prog sedprog sed
check_prog shprog sh
check_prog whoamiprog whoami
+if [ -e "$wrkdir" ]; then
+ echo "\"${wrkdir}\" already exists, please remove it or use --workdir.";
+ exit 1
+fi
+
mkdir_p_early ${wrkdir}
if touch ${wrkdir}/.writeable; then
:
Home |
Main Index |
Thread Index |
Old Index