From c5c0c68256f34bc4292c0920d0c4d9e7ff842950 Mon Sep 17 00:00:00 2001 From: Michael Andres Date: Fri, 2 Dec 2011 11:23:00 +0100 Subject: [PATCH] zypper-log: fix regex to match hostnames with embeded '-' too. --- tools/zypper-log | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/zypper-log b/tools/zypper-log index 918adf8..890ece2 100755 --- 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), -- 2.7.4