From d407299807d0ef7e330bd7368b79a319445baeb5 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Sun, 16 Dec 2007 11:05:25 +0000 Subject: [PATCH] keep more lines from log --- summary.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/summary.py b/summary.py index 7919a925..d7068076 100755 --- a/summary.py +++ b/summary.py @@ -2,7 +2,7 @@ # read a full log and tries to extract the interesting stuff import sys,re -m_beg=re.compile('.* BEG RPM.*') +m_show_line=re.compile(".* BEG (RPM|VSERVER).*|.*'boot'.*|\* .*") m_installing_any=re.compile('\r (Installing:[^\]]*]) ') m_installing_err=re.compile('\r (Installing:[^\]]*])(..+)') m_installing_end=re.compile('Installed:.*') @@ -18,7 +18,7 @@ def scan_log (filename): f=open(filename) echo=False for line in f.xreadlines(): - if m_beg.match(line): + if m_show_line.match(line): print line, elif m_installing_err.match(line): (installing,error)=m_installing_err.match(line).groups() -- 2.47.0