summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-hooks/98-remove_unwanted_packages
diff options
context:
space:
mode:
Diffstat (limited to 'config/chroot_local-hooks/98-remove_unwanted_packages')
-rwxr-xr-xconfig/chroot_local-hooks/98-remove_unwanted_packages7
1 files changed, 6 insertions, 1 deletions
diff --git a/config/chroot_local-hooks/98-remove_unwanted_packages b/config/chroot_local-hooks/98-remove_unwanted_packages
index 13e2a0e..6f9628e 100755
--- a/config/chroot_local-hooks/98-remove_unwanted_packages
+++ b/config/chroot_local-hooks/98-remove_unwanted_packages
@@ -46,7 +46,6 @@ apt-get --yes purge \
### Deinstall some other unwanted packages.
apt-get --yes purge \
'^aptitude*' \
- '^geoclue*' \
krb5-locales \
libdvdcss2-dbgsym \
live-build \
@@ -56,5 +55,11 @@ apt-get --yes purge \
tasksel-data \
tcpd
+### Deinstall some other unwanted packages whose regexp might not be match
+### anything when building with partial, tagged APT snapshots.
+if [ $(dpkg --get-selections | grep -c -E '^geoclue') -gt 0 ]; then
+ apt-get --yes purge '^geoclue*'
+fi
+
### Deinstall dependencies of the just removed packages.
apt-get --yes --purge autoremove