[Reportbug-commits] [reportbug] 06/11: match 'Description-en' too when getting package description
Sandro Tosi
morph at moszumanska.debian.org
Sun Jan 26 19:45:35 UTC 2014
This is an automated email from the git hooks/post-receive script.
morph pushed a commit to branch master
in repository reportbug.
commit 6b7d2110901f7b97c202425490a8612170441a70
Author: Sandro Tosi <morph at debian.org>
Date: Sun Jan 26 20:29:17 2014 +0100
match 'Description-en' too when getting package description
---
debian/changelog | 3 ++-
reportbug/utils.py | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 65ce28e..038a756 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -15,6 +15,7 @@ reportbug (6.4.5) UNRELEASED; urgency=low
- improve the template provided to less-expert reporters to be clear the
questions should be answered by the reporter themselves; thanks to Tony
Houghton for the report; Closes: #690782
+ - match 'Description-en' too when getting package description
* reportbug/checkversions.py
- if NEW has several versions of the given package, choose the bigger;
thanks to Thorsten Glaser for the report; Closes: #704040
@@ -25,7 +26,7 @@ reportbug (6.4.5) UNRELEASED; urgency=low
* checkversions: let rmadison do the architecture/suite filtering
* debbugs: retire the opu tag for release.debian.org; Closes: #707631
- -- Sandro Tosi <morph at debian.org> Sun, 26 Jan 2014 20:18:46 +0100
+ -- Sandro Tosi <morph at debian.org> Sun, 26 Jan 2014 20:28:59 +0100
reportbug (6.4.4) unstable; urgency=low
diff --git a/reportbug/utils.py b/reportbug/utils.py
index d05705d..b7e5656 100644
--- a/reportbug/utils.py
+++ b/reportbug/utils.py
@@ -498,7 +498,7 @@ def get_avail_database():
def available_package_description(package):
data = commands.getoutput('apt-cache show'+commands.mkarg(package))
data = data.decode('utf-8', 'replace')
- descre = re.compile(r'^Description: (.*)$')
+ descre = re.compile(r'^Description(?:-en): (.*)$')
for line in data.split('\n'):
m = descre.match(line)
if m:
--
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