pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/bootstrap Bail out before doing anything if PKG_PATH i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b547454d333e
branches:  trunk
changeset: 560641:b547454d333e
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon Jun 15 17:02:14 2009 +0000

description:
Bail out before doing anything if PKG_PATH is set.

diffstat:

 bootstrap/bootstrap |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r f40dd9fbf70a -r b547454d333e bootstrap/bootstrap
--- a/bootstrap/bootstrap       Mon Jun 15 16:53:20 2009 +0000
+++ b/bootstrap/bootstrap       Mon Jun 15 17:02:14 2009 +0000
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# $NetBSD: bootstrap,v 1.146 2009/05/29 15:58:37 rillig Exp $
+# $NetBSD: bootstrap,v 1.147 2009/06/15 17:02:14 joerg Exp $
 #
 #
 # Copyright (c) 2001-2002 Alistair G. Crooks.  All rights reserved.
@@ -341,6 +341,11 @@
        exit 1;
 fi
 
+if [ -n "$PKG_PATH" ]; then
+       echo "ERROR: Please unset PKG_PATH before running bootstrap." 1>&2
+       exit 1;
+fi
+
 build_start=`date`
 echo_msg "bootstrap command: $0 $@"
 echo_msg "bootstrap started: $build_start"



Home | Main Index | Thread Index | Old Index