projects
/
platform
/
upstream
/
zypper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1b9a03
)
zypper-log: fix regex to match hostnames with embeded '-' too.
author
Michael Andres
<ma@suse.de>
Fri, 2 Dec 2011 10:23:00 +0000
(11:23 +0100)
committer
Michael Andres
<ma@suse.de>
Fri, 2 Dec 2011 10:23:00 +0000
(11:23 +0100)
tools/zypper-log
patch
|
blob
|
history
diff --git
a/tools/zypper-log
b/tools/zypper-log
index
918adf8
..
890ece2
100755
(executable)
--- a/
tools/zypper-log
+++ b/
tools/zypper-log
@@
-96,7
+96,7
@@
def printLogByPID(logfiles, pid, date = False):
if not date:
date = "\d{4}-\d{2}-\d{2}"
output = []
- c = re.compile(r"%s \d{2}:\d{2}:\d{2} \<\d
\> \w
+\(%d\).+" % (date, pid))
+ c = re.compile(r"%s \d{2}:\d{2}:\d{2} \<\d
+\> [^(]
+\(%d\).+" % (date, pid))
for logfile in logfiles:
print >> sys.stderr, "Reading %s" % logfile, '.' * (filenamelen - len(logfile) + 3),