]> git.decadent.org.uk Git - dak.git/commitdiff
warn on read errors in update-ftpstats, don't die
authorUli Martens <uli@youam.net>
Wed, 28 Mar 2012 14:26:36 +0000 (16:26 +0200)
committerUli Martens <uli@youam.net>
Wed, 28 Mar 2012 14:26:36 +0000 (16:26 +0200)
scripts/debian/update-ftpstats

index a7fda09eb58b3400d3acb3afa26e438963e03f5a..7cad65906ed2c516cb0fe043ee746166918e6f8b 100755 (executable)
@@ -13,7 +13,7 @@ my @archs = ("source", "all", "amd64", "i386", "alpha", "arm", "armel", "armhf",
 
 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}) {