Skip to content

Commit 204f1e2

Browse files
committed
Fix sanify check when dependencies have no ${PORTSDIR}
1 parent 4bddb27 commit 204f1e2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/share/poudriere/common.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3421,7 +3421,10 @@ delete_old_pkg() {
34213421
raw_deps=$(injail make -C /usr/ports/${o} -V${td}_DEPENDS)
34223422
for d in ${raw_deps}; do
34233423
key=${d%:*}
3424-
dpath=${d#*:/usr/ports/}
3424+
dpath=${d#*:}
3425+
case "${dpath}" in
3426+
/usr/ports/*) dpath=${dpath#/usr/ports/} ;;
3427+
esac
34253428
case ${td} in
34263429
LIB)
34273430
[ -n "${liblist}" ] || liblist=$(injail ldconfig -r | awk '$1 ~ /:-l/ { gsub(/.*-l/, "", $1); printf("%s ",$1) } END { printf("\n") }')

0 commit comments

Comments
 (0)