From: Michael Prokop Date: Thu, 18 Aug 2011 16:33:55 +0000 (+0200) Subject: 25-locales: make sure the localepurge package exists, not only the binary. X-Git-Tag: v0.15.1~1 X-Git-Url: https://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=6afe668fb5f19bacf76ee2b6377a3a82b4bc86f8 25-locales: make sure the localepurge package exists, not only the binary. localepurge might be a left-over of a removed package (brrr) and might no longer exist as a package, therefore make the check more reliable. --- diff --git a/etc/grml/fai/config/scripts/GRMLBASE/25-locales b/etc/grml/fai/config/scripts/GRMLBASE/25-locales index 9987614..fc5fb3d 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/25-locales +++ b/etc/grml/fai/config/scripts/GRMLBASE/25-locales @@ -38,7 +38,7 @@ fi # make sure: # localepurge localepurge/nopurge multiselect .... # is set so localepurge works as expected -if [ -x $target/usr/sbin/localepurge ] ; then +if $ROOTCMD dpkg --list localepurge >/dev/null 2>&1 ; then $ROOTCMD dpkg-reconfigure -f noninteractive localepurge fi