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

[SCM] Debian package checker branch, master, updated. 2.3.4-107-g4e950a9



The following commit has been merged in the master branch:
commit 282540a05b92eae10a1fad1c7acc4206e2889587
Author: Raphael Geissert <atomo64@gmail.com>
Date:   Mon Apr 12 21:57:52 2010 -0500

    Include ISO 639-3 locale codes
    
    * private/refresh-locale-codes:
      + [RG] Include ISO 639-3 codes.

diff --git a/debian/changelog b/debian/changelog
index 4be7cd7..4ddf03e 100755
--- a/debian/changelog
+++ b/debian/changelog
@@ -141,6 +141,8 @@ lintian (2.4.0) UNRELEASED; urgency=low
   * man/lintian.1:
     + [ADB] Add changes-file to the list of check scripts.
 
+  * private/refresh-locale-codes:
+    + [RG] Include ISO 639-3 codes.
   * private/refresh-virtual-packages-data:
     + [ADB] Use "==" for numeric comparison, not "eq".
   * private/update-coverage:
diff --git a/private/refresh-locale-codes b/private/refresh-locale-codes
index 076a88a..69a4a41 100755
--- a/private/refresh-locale-codes
+++ b/private/refresh-locale-codes
@@ -45,8 +45,8 @@ cleanup () {
 mkdir -p "$lintian_data/files"
 
 cat > "$tmpfile" <<EOF
-# List of locale codes.  This is derived from the ISO 639-1 and ISO
-# 639-2 standards.
+# List of locale codes.  This is derived from the ISO 639-1, ISO
+# 639-2, and ISO 639-3 standards.
 # If a language has 639-1 and 639-2 codes, the -2 code is also included
 # as a key to be mapped to the -1 code.
 #
@@ -56,8 +56,11 @@ EOF
 
 export LANG=C
 
-isoquery -i 639 |
-    perl -w -n -e 'next unless m/^\w{3}\s+(\w{3})\s+(?:(\w{2})\s+)?/;
+{
+    isoquery -i 639
+    sed -nr '/\bid=/{s/^.*id="([^"]+)".*$/xxx \1 x/;p}' \
+	/usr/share/xml/iso-codes/iso_639_3.xml
+} | perl -w -n -e 'next unless m/^\w{3}\s+(\w{3})\s+(?:(\w{2})\s+)?/;
 		    ($iso1, $iso2) = ($2, $1);
 		    if (!defined($iso1)) {
 			$iso1 = $iso2;

-- 
Debian package checker


Reply to: