Commit 5a3fda14 authored by Simon McVittie's avatar Simon McVittie
Browse files

Don't remove python and perl repeatedly


Signed-off-by: Simon McVittie's avatarSimon McVittie <smcv@collabora.com>
parent 5a8f89cc
......@@ -108,12 +108,12 @@ for package in \
if chroot "$sysroot" dpkg-query --show "$package" >/dev/null; then
unwanted+=("$package")
fi
if ! chroot "$sysroot" dpkg-query --show python; then
unwanted+=(python-minimal python2.7-minimal)
fi
done
if ! chroot "$sysroot" dpkg-query --show python; then
unwanted+=(python-minimal python2.7-minimal)
fi
if [ -n "${unwanted[*]}" ]; then
echo "Packages we will forcibly remove (first round):"
for p in "${unwanted[@]}"; do
......@@ -152,12 +152,12 @@ for package in \
if chroot "$sysroot" dpkg-query --show "$package" >/dev/null; then
unwanted+=("$package")
fi
if ! chroot "$sysroot" dpkg-query --show perl; then
unwanted+=(perl-base)
fi
done
if ! chroot "$sysroot" dpkg-query --show perl; then
unwanted+=(perl-base)
fi
if [ -n "${unwanted[*]}" ]; then
echo "Packages we will forcibly remove (second round):"
for p in "${unwanted[@]}"; do
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment