Skip to content
Snippets Groups Projects
Commit 60fe07cb authored by Simon McVittie's avatar Simon McVittie
Browse files

Merge branch 'wip/smcv/remove-perl-last' into 'master'

platformize: Delay removal of perl-base until after other packages

See merge request smcv/flatdeb!35
parents a0784d9f f42a3c7c
No related branches found
No related tags found
No related merge requests found
......@@ -163,7 +163,6 @@ if [ -n "${unwanted[*]}" ]; then
"${unwanted[@]}"
fi
# Second round of removals
unwanted=()
for package in \
......@@ -192,12 +191,24 @@ for package in \
fi
done
if [ -n "${unwanted[*]}" ]; then
echo "Packages we will forcibly remove (second round):"
for p in "${unwanted[@]}"; do
echo "- $p"
done
in_chroot dpkg --purge --force-remove-essential --force-depends \
"${unwanted[@]}"
fi
unwanted=()
if ! is_installed perl; then
unwanted+=(perl-base)
fi
if [ -n "${unwanted[*]}" ]; then
echo "Packages we will forcibly remove (second round):"
echo "Packages we will forcibly remove (third round):"
for p in "${unwanted[@]}"; do
echo "- $p"
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment