X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=tools%2Flogs.py;h=ecb37773fefd5ff8b53101cfae1460276ebe27dc;hb=fc24a0dfb63ab7bebf0a624c08c1335187bf83c4;hp=182cdbdd234fb44766f60f67c2eb46592189ef5d;hpb=4c61aa576c746353c26d25b208a587db9aa9fcb8;p=dak.git diff --git a/tools/logs.py b/tools/logs.py index 182cdbdd..ecb37773 100755 --- a/tools/logs.py +++ b/tools/logs.py @@ -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)