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/1a98aa6a74ee
branches:  trunk
changeset: 394789:1a98aa6a74ee
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 9a011a1c8df5 -r 1a98aa6a74ee 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