[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

r3162 - glibc-package/trunk/debian/debhelper.in



Author: aurel32
Date: 2008-10-13 10:16:22 +0000 (Mon, 13 Oct 2008)
New Revision: 3162

Modified:
   glibc-package/trunk/debian/debhelper.in/locales.postinst
Log:
Minor fixes to locales.postinst


Modified: glibc-package/trunk/debian/debhelper.in/locales.postinst
===================================================================
--- glibc-package/trunk/debian/debhelper.in/locales.postinst	2008-10-13 07:08:44 UTC (rev 3161)
+++ glibc-package/trunk/debian/debhelper.in/locales.postinst	2008-10-13 10:16:22 UTC (rev 3162)
@@ -14,7 +14,7 @@
     . /usr/share/debconf/confmodule
     db_version 2.0
 
-    SUPPORTED_LOCALES="$(sed -e '/^[a-zA-Z]/!d' -e 's/ *$//g' /usr/share/i18n/SUPPORTED /usr/local/share/i18n/SUPPORTED | sort -u)"
+    SUPPORTED_LOCALES="$(sed -e '/^[a-zA-Z]/!d' -e 's/ *$//g' /usr/share/i18n/SUPPORTED /usr/local/share/i18n/SUPPORTED 2>/dev/null | sort -u)"
 
     db_get locales/default_environment_locale && DEFAULT_ENVIRONMENT="$RET"
     db_get locales/locales_to_be_generated && SELECTED_LOCALES=$RET
@@ -39,7 +39,7 @@
         # Comment previous defined locales
         sed -i -e 's/^[a-zA-Z]/# &/' $LG
 
-        # Make sure all locales exists in locales.gen
+        # Make sure all locales exist in locales.gen
         echo "$SUPPORTED_LOCALES" | while read locale ; do
            if ! grep -q "^# *$locale *\$" $LG; then 
              echo "# $locale" >> $LG


Reply to: