X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=tools%2Flogs.py;h=2ebb5bc4d722595d7a699001bbe7ada51fc22ee9;hb=22a446fae719f5ebff49ea93210aeab049e88762;hp=d77d7d20b01c39c41527b3949c82e313f84ed8f5;hpb=faf17643a889cf93d99f5b1cb597ebe85090d5b7;p=dak.git diff --git a/tools/logs.py b/tools/logs.py index d77d7d20..2ebb5bc4 100755 --- a/tools/logs.py +++ b/tools/logs.py @@ -11,13 +11,13 @@ CACHE_FILE = '/srv/ftp.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)?:'+ - r'Archive maintenance timestamp \d+ \(([^\)]*)\): (\d{2}):(\d{2}):(\d{2})$') + r'Archive maintenance timestamp \(([^\)]*)\): (\d{2}):(\d{2}):(\d{2})$') UNSAFE = re.compile(r'[^a-zA-Z/\._:0-9\- ]') -graphs = {"dinstall1": {"keystolist":["pg_dump1", "i18n 1", "accepted", "make-suite-file-list", "apt-ftparchive", +graphs = {"dinstall1": {"keystolist":["pg_dump1", "i18n 1", "accepted", "dominate", "generate-filelist", "apt-ftparchive", "pdiff", "release files", "w-b", "i18n 2", "apt-ftparchive cleanup"], "showothers":True}, - "dinstall2": {"keystolist":['External Updates', 'p-u-new', 'o-p-u-new', 'cruft', 'import-keyring', 'overrides', 'cleanup', 'scripts', 'mirror hardlinks', 'stats', 'compress'], + "dinstall2": {"keystolist":['External Updates', 'p-u-new', 'o-p-u-new', 'cruft', 'import-keyring', 'overrides', 'cleanup', 'scripts', 'mirror hardlinks', 'stats', 'compress', "pkg-file-mapping" ], "showothers":False}, "totals":{"keystolist":["apt-ftparchive", "apt-ftparchive cleanup"],"showothers":True}} @@ -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)