From: Michael Prokop Date: Wed, 11 Jan 2012 11:37:35 +0000 (+0100) Subject: GRMLBASE/25-locales: fix check for presence of localepurge X-Git-Tag: v0.17.4~3 X-Git-Url: http://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=f6b5bf34638a2e0879c6d161b08c6523096e2ca3 GRMLBASE/25-locales: fix check for presence of localepurge It's not enough to check just for the *availability* of the package but of course we need to actually check whether localepurge is *installed*. --- diff --git a/etc/grml/fai/config/scripts/GRMLBASE/25-locales b/etc/grml/fai/config/scripts/GRMLBASE/25-locales index fc5fb3d..6dc4d66 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 $ROOTCMD dpkg --list localepurge >/dev/null 2>&1 ; then +if $ROOTCMD dpkg --list localepurge 2>&1 | grep -q '^ii' ; then $ROOTCMD dpkg-reconfigure -f noninteractive localepurge fi