]> git.decadent.org.uk Git - dak.git/blobdiff - tools/logs.py
LOCAL: Remove replay check
[dak.git] / tools / logs.py
index 182cdbdd234fb44766f60f67c2eb46592189ef5d..ecb37773fefd5ff8b53101cfae1460276ebe27dc 100755 (executable)
@@ -7,7 +7,7 @@ import os,re,datetime, sys
 import tempfile, time
 
 ITEMS_TO_KEEP = 20
-CACHE_FILE = '/srv/ftp.debian.org/misc/dinstall_time_cache'
+CACHE_FILE = '/srv/ftp-master.debian.org/misc/dinstall_time_cache'
 GRAPH_DIR = '/srv/ftp.debian.org/web/stat'
 
 LINE = re.compile(r'(?:|.*/)dinstall_(\d{4})\.(\d{2})\.(\d{2})-(\d{2}):(\d{2}):(\d{2})\.log(?:\.bz2)?:'+
@@ -46,7 +46,7 @@ if m:
     raise Exception("I don't like command line arguments including char '%s'"%m.group(0))
 
 if args:
-  for l in os.popen('bzgrep -H "Archive maintenance timestamp" "'+'" "'.join(args)+'"'):
+  for l in os.popen('bzgrep -H "^Archive maintenance timestamp" "'+'" "'.join(args)+'"'):
     m = LINE.match(l)
     if not m:
         raise Exception("woops '%s'"%l)