From 6afe668fb5f19bacf76ee2b6377a3a82b4bc86f8 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Thu, 18 Aug 2011 18:33:55 +0200 Subject: [PATCH] 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. --- etc/grml/fai/config/scripts/GRMLBASE/25-locales | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.1.4