]> git.donarmstrong.com Git - dak.git/blobdiff - scripts/debian/update-ftpstats
Add ppc64el
[dak.git] / scripts / debian / update-ftpstats
index a7fda09eb58b3400d3acb3afa26e438963e03f5a..f135d02e84b25f6fbd22c64195f0f93bbfeef4ea 100755 (executable)
@@ -7,13 +7,13 @@ use IO::Uncompress::AnyUncompress ":all";
 
 my %data;
 my %data2;
-my @archs = ("source", "all", "amd64", "i386", "alpha", "arm", "armel", "armhf", "hppa",
-             "hurd-i386", "ia64", "kfreebsd-amd64", "kfreebsd-i386", "mips", "mipsel", "powerpc", "s390",
-             "s390x", "sparc");
+my @archs = ("source", "all", "amd64", "arm64", "i386", "alpha", "arm", "armel", "armhf", "hppa",
+             "hurd-i386", "ia64", "kfreebsd-amd64", "kfreebsd-i386", "mips", "mipsel", "powerpc",
+             "ppc64el", "s390", "s390x", "sparc");
 
 for my $file (@ARGV) {
   my $FH = new IO::Uncompress::AnyUncompress $file, Transparent => 1
-    or die "Cannot open $file: $AnyUncompressError\n";
+    or warn "Cannot open $file: $AnyUncompressError\n";
   while (<$FH>) {
     if (/^(\d{8})\d{6}\|(?:k(?:atie|elly)|process-(?:accepted|upload))(?:\|dak)?\|installed\|[^|]+\|[^|]+\|(\d+)\|([-\w]+)$/) {
       if (not defined $data{$1}) {
@@ -27,7 +27,7 @@ for my $file (@ARGV) {
   }
 }
 
-foreach $p (sort keys %data) {
+foreach my $p (sort keys %data) {
   print "$p";
   foreach $a (@archs) {
     print ", $data{$p}{$a}";