[Debian-l10n-commits] [ddtp] 01/01: Fix stats display to read gz files instead of bz2.

Martijn van Oosterhout kleptog-guest at moszumanska.debian.org
Sun Jan 19 14:00:13 UTC 2014


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

kleptog-guest pushed a commit to branch master
in repository ddtp.

commit de368bcd66f99f2f73d70a3b3e9c7c7df2c6ffb1
Author: Martijn van Oosterhout <kleptog at svana.org>
Date:   Sun Jan 19 13:57:53 2014 +0000

    Fix stats display to read gz files instead of bz2.
---
 ddts-stats | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ddts-stats b/ddts-stats
index e32828f..b938026 100755
--- a/ddts-stats
+++ b/ddts-stats
@@ -89,7 +89,7 @@ sub fetch_data
 sub load_packages
 {
   print "Loading package file\n";
-  my $fh = open_bz2_file( "/org/ddtp.debian.net/Packages/Packages_${DIST}_main_${ARCH}.bz2" );
+  my $fh = open_bz2_file( "/org/ddtp.debian.net/Packages/Packages_${DIST}_main_${ARCH}.gz" );
   parse_header_format( $fh, \&process_package );
   close $fh;
 }
@@ -335,7 +335,7 @@ sub open_bz2_file
  
   my $fh;
  
-  open $fh, "bzcat $file |" or die "Couldn't open $file ($!)\n";
+  open $fh, "zcat $file |" or die "Couldn't open $file ($!)\n";
   
   return $fh;
 }

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



More information about the Debian-l10n-commits mailing list