[Reportbug-commits] [reportbug] 01/03: Match conffiles hash with a stricter regex
Sandro Tosi
morph at moszumanska.debian.org
Thu Sep 3 19:49:25 UTC 2015
This is an automated email from the git hooks/post-receive script.
morph pushed a commit to branch master
in repository reportbug.
commit 5bddb279f24fb5a59b85fe292c7182a458746382
Author: Sandro Tosi <morph at debian.org>
Date: Mon Aug 31 15:51:21 2015 +0100
Match conffiles hash with a stricter regex
We now match the hash of config files matching a string made of numbers and a-f
letters, as those are the only valid chars for an hash, this also allows us to
better skip the 'obsolete' string if an conffile is obsolete.
---
reportbug/utils.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/reportbug/utils.py b/reportbug/utils.py
index f80ea14..d50ad09 100644
--- a/reportbug/utils.py
+++ b/reportbug/utils.py
@@ -359,7 +359,7 @@ def get_package_status(package, avail=False):
confmode = False
else:
# re is used to identify also conffiles with spaces in the name
- conffiles = conffiles + [re.findall(r' (.+) ([^ |^(obsolete)]+).*$', line)[0]]
+ conffiles = conffiles + [re.findall(r' (.+) ([0-9a-f]+).*$', line)[0]]
if versionre.match(line):
(crud, pkgversion) = line.split(": ", 1)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reportbug/reportbug.git
More information about the Reportbug-commits
mailing list