This is an automated email from the git hooks/post-receive script.

aurel32 pushed a commit to branch sid
in repository glibc.

commit 106c13d5c0f3183fcac6e516aae575858bfad1b3
Author: Aurelien Jarno <aurel...@aurel32.net>
Date:   Sun Oct 16 00:55:51 2016 +0200

    debian/debhelper.in/locales.postinst: improve locales-all detection. 
Closes: #840901.
---
 debian/changelog                     | 2 ++
 debian/debhelper.in/locales.postinst | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index ec6d6ae..be785c8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -59,6 +59,8 @@ glibc (2.24-4) UNRELEASED; urgency=medium
     files. Closes: #767707.
   * debian/patches/localedata/locale-C.diff: switch back transliterations to
     combining.  Closes: #840199.
+  * debian/debhelper.in/locales.postinst: improve locales-all detection.
+    Closes: #840901.
 
  -- Aurelien Jarno <aure...@debian.org>  Sat, 17 Sep 2016 20:03:04 +0200
 
diff --git a/debian/debhelper.in/locales.postinst 
b/debian/debhelper.in/locales.postinst
index d9fc165..1b6ee36 100644
--- a/debian/debhelper.in/locales.postinst
+++ b/debian/debhelper.in/locales.postinst
@@ -58,7 +58,7 @@ EOF
     fi
 
     # Update requested locales if locales-all is not installed
-    if dpkg-query -s locales-all >/dev/null 2>&1 ; then
+    if dpkg-query -W -f='${db:Status-Abbrev}' locales-all 2>/dev/null | grep 
-q '^.i' ; then
         echo "locales-all installed, skipping locales generation"
     else
         locale-gen

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-glibc/glibc.git

Reply via email to