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

Sandro Tosi morph at debian.org
Wed Jan 5 01:16:13 UTC 2011


The following commit has been merged in the master branch:
commit 5d44c339e36af828e2b35693b2cda9671abfa5a5
Author: Sandro Tosi <morph at debian.org>
Date:   Wed Jan 5 00:56:21 2011 +0100

    check only if the package is in 'install' selection state, not if it's completely installed ('half-installed' state is ok), to retrive its information; thanks to Lionel Elie Mamane for the report; Closes: #579159

diff --git a/debian/changelog b/debian/changelog
index 4802bb4..aef1b18 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -20,6 +20,9 @@ reportbug (4.99.0) UNRELEASED; urgency=low
     - pass follow-up information on the correct bugreport() argument, so that
       the message is correctly formatter (+unittests to check about that);
       thanks to Jakub Wilk for the report; Closes: #533914
+    - check only if the package is in 'install' selection state, not if it's
+      completely installed ('half-installed' state is ok), to retrive its
+      information; thanks to Lionel Elie Mamane for the report; Closes: #579159
   * reportbug/debianbts.py, test/test_debianbts.py
     - fix os.uname() call in generic_infofunc() method, also adding unit tests
       for it; thanks to Yaroslav Halchenko for report and patch; Closes: #607849
@@ -42,7 +45,7 @@ reportbug (4.99.0) UNRELEASED; urgency=low
     - updated with Russian translations; thanks to Alexander Sashanov for the
       report and patch; Closes: #608889
 
- -- Sandro Tosi <morph at debian.org>  Wed, 05 Jan 2011 00:17:41 +0100
+ -- Sandro Tosi <morph at debian.org>  Wed, 05 Jan 2011 00:53:48 +0100
 
 reportbug (4.12.6) unstable; urgency=low
 
diff --git a/reportbug/utils.py b/reportbug/utils.py
index 108087c..712e372 100644
--- a/reportbug/utils.py
+++ b/reportbug/utils.py
@@ -569,7 +569,10 @@ def get_package_info(packages, skip_notfound=False):
                 stat = statob.search(p).group('stat')
                 sinfo = stat.split()
                 stat = sinfo[0][0] + sinfo[2][0]
-                if stat[1] != 'i':
+                # 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':
                     continue
 
                 if m.group('hdr') == 'Provides':

-- 
Reportbug - reports bugs in the Debian distribution



More information about the Reportbug-commits mailing list