xbps-src: remove XBPS_DESTDIR from conf file.

Rather than make it configurable, put this always under
XBPS_MASTERDIR/pkg-destdir, so you don't have to care about it anymore.

--HG--
extra : convert_revision : 34cc3102272bfcf95b2fc3a8961cb9cb2429ab91
This commit is contained in:
Juan RP 2010-01-09 23:35:11 +01:00
parent 8d8fd35a75
commit 667095b4ae
5 changed files with 13 additions and 20 deletions

View file

@ -153,13 +153,13 @@ remove_pkg()
stow_pkg_handler unstow || return $?
for subpkg in ${subpackages}; do
if [ -d $XBPS_DESTDIR/${subpkg}-${ver%_${revision}} ]; then
rm -rf $XBPS_DESTDIR/${subpkg}-${ver%_${revision}}
if [ -d "$XBPS_DESTDIR/${subpkg}-${ver%_*}" ]; then
rm -rf "$XBPS_DESTDIR/${subpkg}-${ver%_*}"
fi
done
if [ -d $XBPS_DESTDIR/${pkgname}-${ver%_${revision}} ]; then
rm -rf $XBPS_DESTDIR/${pkgname}-${ver%_${revision}}
if [ -d "$XBPS_DESTDIR/${pkgname}-${ver%_*}" ]; then
rm -rf "$XBPS_DESTDIR/${pkgname}-${ver%_*}"
fi
return $?
}