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
This commit is contained in:
parent
8d7b300516
commit
89df2158c5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=259246
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user