24 lines
345 B
Text
24 lines
345 B
Text
# REMOVE
|
|
case "$ACTION" in
|
|
|
|
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)
|
|
|
|
#
|
|
# After removing opt/Loc-OS-LPKG, xbps removes opt if empty!
|
|
# This script restores opt
|
|
#
|
|
mkdir -p opt
|
|
;;
|
|
esac
|