aboutsummaryrefslogtreecommitdiff
path: root/release/scripts
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2013-12-12 05:49:27 +0000
committerGlen Barber <gjb@FreeBSD.org>2013-12-12 05:49:27 +0000
commit89df2158c5f812c8467e8410de5f88c8387c5250 (patch)
tree1d35befb3d30fa5667f9dece99009e89ff6a0022 /release/scripts
parent8d7b3005167c2b0941ea9d279fa7e5b2a3d2c859 (diff)
downloadsrc-89df2158c5f812c8467e8410de5f88c8387c5250.tar.gz
src-89df2158c5f812c8467e8410de5f88c8387c5250.zip
Prevent release build errors found during snapshot builds where if
NOPORTS=1, pkg-stage.sh cannot build the ports-mgmt/pkg port if WITH_DVD=1. MFC after: 3 days Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=259246
Diffstat (limited to 'release/scripts')
-rwxr-xr-xrelease/scripts/pkg-stage.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/release/scripts/pkg-stage.sh b/release/scripts/pkg-stage.sh
index 93768fffa8d9..3781f776656a 100755
--- a/release/scripts/pkg-stage.sh
+++ b/release/scripts/pkg-stage.sh
@@ -24,6 +24,11 @@ fi
REVISION="${2}"
. "${1}" || exit 1
+# If NOPORTS is set for the release, do not attempt to build pkg(8).
+if [ ! -f /usr/ports/Makefile ]; then
+ exit 0
+fi
+
if [ ! -x /usr/local/sbin/pkg ]; then
/usr/bin/make -C /usr/ports/ports-mgmt/pkg install clean
fi