From 9c44c0906fe2eb551c8f4e93d78bb23ca13bccca Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Sat, 7 Feb 2009 14:59:17 +0100 Subject: [PATCH] Use the bzip2 compressed Translation-* files instead of the gzip ones On request of DSA, since they want to only have one variant of these files in the future. --- bin/parse-translations | 2 +- cron.d/120synctrans | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/parse-translations b/bin/parse-translations index 3146024..21bcaaa 100755 --- a/bin/parse-translations +++ b/bin/parse-translations @@ -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 () { next if /^\s*$/; diff --git a/cron.d/120synctrans b/cron.d/120synctrans index a40736f..bd3e31d 100755 --- a/cron.d/120synctrans +++ b/cron.d/120synctrans @@ -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 -- 2.39.2