From: Luca Falavigna Date: Wed, 25 Nov 2009 23:14:15 +0000 (+0000) Subject: Adjust regex X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=babe25240b8866aff34d9fd240670a7876257c86;p=dak.git Adjust regex Match "Archive maintenance timestamp" only if present at the beginning of the row, thus ignoring bogus messages eventually registered in the logs. Signed-off-by: Luca Falavigna --- diff --git a/tools/logs.py b/tools/logs.py index c4eb6bea..6db78d99 100755 --- a/tools/logs.py +++ b/tools/logs.py @@ -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)