Correct REMOVE scripts

This commit is contained in:
KF-Art 2022-09-21 00:35:33 -04:00
parent df16f8d95a
commit deadac60f6
4 changed files with 18 additions and 11 deletions

View file

@ -3,10 +3,12 @@
case "$ACTION" in
post)
# Enter via chroot to container and remove librewolf-bin
xchroot /glibc xbps-install -Ryfv librewolf-bin
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"
# Ensure that xchroot has unmounted all binds
umount -R "/glibc/dev" "/glibc/etc/resolv.conf" "/glibc/proc" "/glibc/sys"
fi
;;
esac

View file

@ -6,9 +6,12 @@ pre)
#
# Remove all installed LPKG packages to avoid conflicts
#
for pkg in $(lpkg -i | cut -d "-" -f1 | tail -n +3);
do lpkg remove ${pkg}
done
if [ "$UPDATE" = "no" ]; then
for pkg in $(lpkg -i | cut -d "-" -f1 | tail -n +3);
do lpkg remove ${pkg}
done
fi
;;
post)

View file

@ -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"
@ -44,8 +44,8 @@ do_install() {
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
_repo="loc-os_linux/lpkg-list32"
# Currently the LPKG GUI is built only for x86_64. In future releases this won't be necessary.
rm ${DESTDIR}/opt/Loc-OS-LPKG/LpkgGui
# Currently the LPKG GUI is built only for x86_64. In future releases this won't be necessary.
rm ${DESTDIR}/opt/Loc-OS-LPKG/LpkgGui
fi
# Fetch repository list

View file

@ -1,6 +1,8 @@
# REMOVE
case "$ACTION" in
pre)
rm -r /glibc
if [ "$UPDATE" = "no" ]; then
rm -r /glibc
fi
;;
esac