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