stow_funcs.sh: don't error with metapkgs while removing.

--HG--
extra : convert_revision : 04d1f2fe6e9bc962f62b93f9b4bd6d566c759e07
This commit is contained in:
Juan RP 2008-12-18 09:50:19 +01:00
parent ae39fc9d34
commit ff4f1346c2

View file

@ -100,8 +100,7 @@ unstow_pkg()
msg_error "$pkg is incomplete, missing flist." msg_error "$pkg is incomplete, missing flist."
elif [ ! -w flist ]; then elif [ ! -w flist ]; then
msg_error "$pkg cannot be removed (permission denied)." msg_error "$pkg cannot be removed (permission denied)."
fi elif [ -s flist ]; then
# Remove installed files. # Remove installed files.
for f in $(cat flist); do for f in $(cat flist); do
if [ -f $XBPS_MASTERDIR/$f -o -h $XBPS_MASTERDIR/$f ]; then if [ -f $XBPS_MASTERDIR/$f -o -h $XBPS_MASTERDIR/$f ]; then
@ -120,6 +119,7 @@ unstow_pkg()
fi fi
fi fi
done done
fi
# Remove metadata dir. # Remove metadata dir.
rm -rf $XBPS_PKGMETADIR/$pkgname rm -rf $XBPS_PKGMETADIR/$pkgname