From: Joerg Jaspert Date: Mon, 7 Mar 2011 22:30:33 +0000 (+0100) Subject: Fixup the regex X-Git-Url: https://git.decadent.org.uk/gitweb/?p=dak.git;a=commitdiff_plain;h=f51a98511c1d7892ba85984058270dfc01d60db5 Fixup the regex Signed-off-by: Joerg Jaspert --- diff --git a/scripts/debian/update-ftpstats b/scripts/debian/update-ftpstats index ea07a72a..c740583f 100755 --- a/scripts/debian/update-ftpstats +++ b/scripts/debian/update-ftpstats @@ -7,8 +7,8 @@ my @archs = ("source", "all", "amd64", "i386", "alpha", "arm", "armel", "hppa", "sparc"); while (<>) { - if (/^(\d{8})\d{6}\|(?:k(?:atie|elly)|process-accepted)\|installed\|[^|]+\|[^|]+\|(\d+)\|([-\w]+)$/) { - if (not defined $data{$1}) { + if (/^(\d{8})\d{6}\|(?:k(?:atie|elly)|process-(?:accepted|upload))(?:\|dak)?\|installed\|[^|]+\|[^|]+\|(\d+)\|([-\w]+)$/) { + if (not defined $data{$1}) { foreach $a (@archs) { $data{$1}{$a} = 0; }