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:
parent
34ade72d5f
commit
ab0c996d3f
@ -24,6 +24,11 @@ fi
|
|||||||
REVISION="${2}"
|
REVISION="${2}"
|
||||||
. "${1}" || exit 1
|
. "${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
|
if [ ! -x /usr/local/sbin/pkg ]; then
|
||||||
/usr/bin/make -C /usr/ports/ports-mgmt/pkg install clean
|
/usr/bin/make -C /usr/ports/ports-mgmt/pkg install clean
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user