]> err.no Git - dak/commitdiff
Fixup the regex
authorJoerg Jaspert <joerg@debian.org>
Mon, 7 Mar 2011 22:30:33 +0000 (23:30 +0100)
committerJoerg Jaspert <joerg@debian.org>
Mon, 7 Mar 2011 22:30:33 +0000 (23:30 +0100)
Signed-off-by: Joerg Jaspert <joerg@debian.org>
scripts/debian/update-ftpstats

index ea07a72a3517aba84c156f449e1769675d1ae763..c740583f06d99c4e8334637812b662093479f6e0 100755 (executable)
@@ -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;
                        }