Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
pkg2ng: Avoid corruption warnings due to lingering portmaster distfiles file
Bryan Drewery committed 13 years ago
commit 647e16ab542d908a5186f58f0fd4be4d93a7d1fd
parent bc5be82
1 file changed +6 -0
modified ports/pkg2ng
@@ -20,6 +20,12 @@ PKGBAK="$PKGDB.bak"
for PKG in $( pkg_info -Ea )
do
	DB="${PKGDB}/${PKG}"
+

+
	# Work around lingering portmaster distfiles showing "corruption"
+
	if [ ! -e "${DB}/+CONTENTS" ] && [ "$(/bin/ls ${DB})" = "distfiles" ]; then
+
		continue
+
	fi
+

	DESC="${DB}/+DESC"
	if [ ! -e "${PKGBAK}" ]; then
		echo "Creating backup pkg_info(1) database directory in ${PKGBAK}."