[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master 1/2] Fixup the regex



Signed-off-by: Joerg Jaspert <joerg@debian.org>
---
 scripts/debian/update-ftpstats |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/debian/update-ftpstats b/scripts/debian/update-ftpstats
index ea07a72..c740583 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;
 			}
-- 
1.7.2.3



Reply to: