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
This commit is contained in:
gjb 2013-12-17 03:46:44 +00:00
parent 34ade72d5f
commit ab0c996d3f

View File

@ -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