[Reportbug-commits] [SCM] Reportbug - reports bugs in the Debian distribution branch, master, updated. 4.9-190-gf779ddb

Sandro Tosi morph at debian.org
Thu Apr 28 22:28:31 UTC 2011


The following commit has been merged in the master branch:
commit b4b5b9799f6379531797cb8a19e612be85aae618
Author: Sandro Tosi <morph at debian.org>
Date:   Thu Apr 28 23:01:53 2011 +0200

    filter out packages in "installed ok not-installed" state before trying to retrieve their information; thanks to all the reporters; Closes: #616455

diff --git a/debian/changelog b/debian/changelog
index e853e0d..0626f24 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -26,8 +26,11 @@ reportbug (5.1) UNRELEASED; urgency=low
       config file), to limit the size of any attachment (or --body-file) to the
       specified value, in byte; thanks to Lionel Elie Mamane for the report and
       to Carl Chanet for the initial patch; Closes: #528720
+  * reportbug/utils.py
+    - filter out packages in "installed ok not-installed" state before trying to
+      retrieve their information; thanks to all the reporters; Closes: #616455
 
- -- Sandro Tosi <morph at debian.org>  Tue, 26 Apr 2011 01:13:24 +0200
+ -- Sandro Tosi <morph at debian.org>  Thu, 28 Apr 2011 23:00:05 +0200
 
 reportbug (5.0) unstable; urgency=low
 
diff --git a/reportbug/utils.py b/reportbug/utils.py
index 3a516dc..5c41ff3 100644
--- a/reportbug/utils.py
+++ b/reportbug/utils.py
@@ -570,9 +570,9 @@ def get_package_info(packages, skip_notfound=False):
                 sinfo = stat.split()
                 stat = sinfo[0][0] + sinfo[2][0]
                 # check if the package is installed, and in that case, retrieve
-                # its information; if the first char is not 'i' (installed),
-                # then skip data retrieval
-                if stat[0] != 'i':
+                # its information; if the first char is not 'i' (installed) or
+                # the second is 'n' (not-installed), then skip data retrieval
+                if stat[0] != 'i' or stat[1] == 'n':
                     continue
 
                 if m.group('hdr') == 'Provides':

-- 
Reportbug - reports bugs in the Debian distribution



More information about the Reportbug-commits mailing list