aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2017-05-26 03:13:37 +0800
committerbapt <bapt@FreeBSD.org>2017-05-26 03:13:37 +0800
commit88c683dd209682d0b8ebec7b913c88b92cb0bb56 (patch)
treed2c70cd70b4d2db69dbf828354ef21e239a14520 /Mk
parent6f6e3a5957a0c83656b6a31094db392000c107be (diff)
downloadfreebsd-ports-gnome-88c683dd209682d0b8ebec7b913c88b92cb0bb56.tar.gz
freebsd-ports-gnome-88c683dd209682d0b8ebec7b913c88b92cb0bb56.tar.zst
freebsd-ports-gnome-88c683dd209682d0b8ebec7b913c88b92cb0bb56.zip
Fix issues with PACKAGES is set by a user with a ':' in the path
Reported by: dim Approved by: portmgr (adamw) Differential Revision: https://reviews.freebsd.org/D10847
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.port.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 52bbdf1c1387..8936d25a9a2e 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -2497,6 +2497,7 @@ check-categories:
PKGREPOSITORYSUBDIR?= All
PKGREPOSITORY?= ${PACKAGES}/${PKGREPOSITORYSUBDIR}
.if exists(${PACKAGES})
+PACKAGES:= ${PACKAGES:S/:/\:/g}
_HAVE_PACKAGES= yes
PKGFILE?= ${PKGREPOSITORY}/${PKGNAME}${PKG_SUFX}
.else