Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
pkg2ng: Fix rerunning causing portmaster distfiles-only dirs being copied into /var/db/pkg.bak
Bryan Drewery committed 13 years ago
commit 02b5e9f655fbc8bc7a9674c9d789f4c896293040
parent 4594048
1 file changed +2 -1
modified ports/pkg2ng
@@ -108,7 +108,8 @@ if [ -n "${failed_pkgs}" ]; then
else
	for PKG in $( pkg_info -Ea ); do
		DB="${PKGDB}/${PKG}"
-
		if [ -e ${DB} ]; then
+
		# Ignore package dirs that only have portmaster 'distfiles' in them
+
		if [ -e ${DB} ] && [ "$(/bin/ls ${DB})" != "distfiles" ]; then
			cp -pr ${DB} ${PKGBAK}/${PKG}
			# Remove only the files documented in
			# pkg_add(1), then remove ${DB} only if empty