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)
|
||||||
# Enter via chroot to container and remove librewolf-bin
|
if [ "$UPDATE" = "no" ]; then
|
||||||
xchroot /glibc xbps-install -Ryfv librewolf-bin
|
# Enter via chroot to container and remove 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
|
||||||
#
|
#
|
||||||
for pkg in $(lpkg -i | cut -d "-" -f1 | tail -n +3);
|
|
||||||
do lpkg remove ${pkg}
|
if [ "$UPDATE" = "no" ]; then
|
||||||
done
|
for pkg in $(lpkg -i | cut -d "-" -f1 | tail -n +3);
|
||||||
|
do lpkg remove ${pkg}
|
||||||
|
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"
|
||||||
|
@ -44,8 +44,8 @@ do_install() {
|
||||||
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
||||||
_repo="loc-os_linux/lpkg-list32"
|
_repo="loc-os_linux/lpkg-list32"
|
||||||
|
|
||||||
# Currently the LPKG GUI is built only for x86_64. In future releases this won't be necessary.
|
# 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
|
rm ${DESTDIR}/opt/Loc-OS-LPKG/LpkgGui
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Fetch repository list
|
# Fetch repository list
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
# REMOVE
|
# REMOVE
|
||||||
case "$ACTION" in
|
case "$ACTION" in
|
||||||
pre)
|
pre)
|
||||||
rm -r /glibc
|
if [ "$UPDATE" = "no" ]; then
|
||||||
|
rm -r /glibc
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Add table
Reference in a new issue