mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-01 10:22:56 +02:00
stow_funcs.sh: don't error with metapkgs while removing.
--HG-- extra : convert_revision : 04d1f2fe6e9bc962f62b93f9b4bd6d566c759e07
This commit is contained in:
parent
ae39fc9d34
commit
ff4f1346c2
1 changed files with 19 additions and 19 deletions
|
@ -100,8 +100,7 @@ unstow_pkg()
|
|||
msg_error "$pkg is incomplete, missing flist."
|
||||
elif [ ! -w flist ]; then
|
||||
msg_error "$pkg cannot be removed (permission denied)."
|
||||
fi
|
||||
|
||||
elif [ -s flist ]; then
|
||||
# Remove installed files.
|
||||
for f in $(cat flist); do
|
||||
if [ -f $XBPS_MASTERDIR/$f -o -h $XBPS_MASTERDIR/$f ]; then
|
||||
|
@ -120,6 +119,7 @@ unstow_pkg()
|
|||
fi
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# Remove metadata dir.
|
||||
rm -rf $XBPS_PKGMETADIR/$pkgname
|
||||
|
|
Loading…
Add table
Reference in a new issue