]> git.deb.at Git - deb/packages.git/commitdiff
Use the bzip2 compressed Translation-* files instead of the gzip ones
authorFrank Lichtenheld <frank@lichtenheld.de>
Sat, 7 Feb 2009 13:59:17 +0000 (14:59 +0100)
committerFrank Lichtenheld <frank@lichtenheld.de>
Sat, 7 Feb 2009 13:59:17 +0000 (14:59 +0100)
On request of DSA, since they want to only have one variant of these
files in the future.

bin/parse-translations
cron.d/120synctrans

index 314602499f4fdbb866824054c1cb49102065fe00..21bcaaa3969ae5a793d85ae32b74a649024ae4be 100755 (executable)
@@ -48,7 +48,7 @@ my $fixja = Text::Iconv->new("EUC-JP", "UTF-8");
 foreach my $lang (@DDTP_LANGUAGES) {
     (my $locale = $lang) =~ s/^([a-z]{2})-([a-z]{2})$/"$1_".uc($2)/e;
     print "Reading Translations for $lang ($locale)...";
-    open PKG, "zcat $TOPDIR/archive/*/*/*/i18n/Translation-$locale.gz|";
+    open PKG, "bzcat $TOPDIR/archive/*/*/*/i18n/Translation-$locale.bz2|";
     my $count = 0;
     while (<PKG>) {
        next if /^\s*$/;
index a40736f15cbf64a15ceb6829cb9c0378ab556726..bd3e31d17dba8239e059f42cce995e952b897323 100755 (executable)
@@ -22,7 +22,7 @@ then
            locale=$(echo $lang|perl -p -e 's/^([a-z]{2})-([a-z]{2})$/"$1_".uc($2)/e')
            echo "retrieve translated Descs $dist/$part/$lang ($locale)"
             (cd us/${dist}/${part}/i18n &&
-                $wget_cmd -N ${ddtp_ftpsite}/dists/${dist}/${part}/i18n/Translation-$locale.gz)
+                $wget_cmd -N ${ddtp_ftpsite}/dists/${dist}/${part}/i18n/Translation-$locale.bz2)
          done
        done
     done
@@ -37,8 +37,8 @@ else
          do
            locale=$(echo $lang|perl -p -e 's/^([a-z]{2})-([a-z]{2})$/"$1_".uc($2)/e')
            echo "retrieve translated Descs $dist/$part/$lang ($locale)"
-            rsync -t ${localdir}/dists/${dist}/${part}/i18n/Translation-$locale.gz \
-               us/${dist}/${part}/i18n/Translation-$locale.gz
+            rsync -t ${localdir}/dists/${dist}/${part}/i18n/Translation-$locale.bz2 \
+               us/${dist}/${part}/i18n/Translation-$locale.bz2
          done
        done
     done