Do the right thing if someone deleted pkginfo.$secname instead

of rm -rf'ing the package dir.
This commit is contained in:
Tom G. Christensen
2004-10-08 09:14:05 +00:00
parent f0079c1084
commit 36e25bc278
2 changed files with 6 additions and 4 deletions

View File

@@ -310,7 +310,7 @@ clean()
META_CLEAN="$META_CLEAN prototype.$secname pkginfo.$secname"
pkgname=$(get_pkgname $secname)
echo "Removing $buildpkgbase/$pkgdir/$pkgname"
$RM -rf $buildpkgbase/$pkgdir/$pkgname
[ ! -z "$pkgname" ] && $RM -rf $buildpkgbase/$pkgdir/$pkgname
done
fi