summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorgjb <gjb@FreeBSD.org>2013-12-17 03:46:44 +0000
committergjb <gjb@FreeBSD.org>2013-12-17 03:46:44 +0000
commitab0c996d3f878bc66bf6a0030aa456af9b84599e (patch)
tree78a098308dbb6fd865c292c7f5dfbb4c8efb50c2 /release
parent34ade72d5f333ee47cbd09a453c1578f2e92fc66 (diff)
downloadFreeBSD-src-ab0c996d3f878bc66bf6a0030aa456af9b84599e.zip
FreeBSD-src-ab0c996d3f878bc66bf6a0030aa456af9b84599e.tar.gz
MFC r259246:
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. Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'release')
-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 93768ff..3781f77 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
OpenPOWER on IntegriCloud