[dak/master] 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 <dktrkranz@debian.org>
---
tools/logs.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tools/logs.py b/tools/logs.py
index c4eb6be..6db78d9 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)
--
1.6.3.3
Reply to: