stow_func.sh::unstow_pkg(): dont play with flist in metapkgs.
--HG-- extra : convert_revision : be2fa0ab535da930ce86824e9fceef786e55a541
This commit is contained in:
parent
d7c720ef7d
commit
9f7bfc772a
|
@ -106,7 +106,10 @@ unstow_pkg()
|
|||
fi
|
||||
|
||||
cd $XBPS_PKGMETADIR/$pkgname || exit 1
|
||||
if [ ! -f flist ]; then
|
||||
if [ "$build_style" = "meta-template" ]; then
|
||||
# If it's a metapkg, do nothing.
|
||||
:
|
||||
elif [ ! -f flist ]; then
|
||||
msg_error "$pkg is incomplete, missing flist."
|
||||
elif [ ! -w flist ]; then
|
||||
msg_error "$pkg cannot be removed (permission denied)."
|
||||
|
@ -133,7 +136,7 @@ unstow_pkg()
|
|||
|
||||
# Remove metadata dir.
|
||||
rm -rf $XBPS_PKGMETADIR/$pkgname
|
||||
|
||||
$XBPS_REGPKGDB_CMD unregister $pkgname $ver
|
||||
|
||||
return $?
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user