Correct REMOVE scripts
This commit is contained in:
parent
df16f8d95a
commit
deadac60f6
4 changed files with 18 additions and 11 deletions
|
@ -3,10 +3,12 @@
|
|||
|
||||
case "$ACTION" in
|
||||
post)
|
||||
if [ "$UPDATE" = "no" ]; then
|
||||
# Enter via chroot to container and remove librewolf-bin
|
||||
xchroot /glibc xbps-install -Ryfv librewolf-bin
|
||||
|
||||
# Ensure that xchroot has unmounted all binds
|
||||
umount -R "/glibc/dev" "/glibc/etc/resolv.conf" "/glibc/proc" "/glibc/sys"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -6,9 +6,12 @@ pre)
|
|||
#
|
||||
# Remove all installed LPKG packages to avoid conflicts
|
||||
#
|
||||
|
||||
if [ "$UPDATE" = "no" ]; then
|
||||
for pkg in $(lpkg -i | cut -d "-" -f1 | tail -n +3);
|
||||
do lpkg remove ${pkg}
|
||||
done
|
||||
fi
|
||||
;;
|
||||
post)
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'lpkg'
|
||||
pkgname=lpkg
|
||||
version=10.1
|
||||
revision=2
|
||||
revision=3
|
||||
archs="x86_64 i686"
|
||||
build_style=fetch
|
||||
hostmakedepends="bsdtar wget"
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
# REMOVE
|
||||
case "$ACTION" in
|
||||
pre)
|
||||
if [ "$UPDATE" = "no" ]; then
|
||||
rm -r /glibc
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Add table
Reference in a new issue