[Reportbug-commits] r561 - in trunk (debian/changelog reportbug)

morph-guest at users.alioth.debian.org morph-guest at users.alioth.debian.org
Sun Jul 6 15:55:26 UTC 2008


    Date: Sunday, July 6, 2008 @ 15:55:25
  Author: morph-guest
Revision: 561

fixed pkgs list generation in --template (or notty); Closes: #489515

Modified:
  trunk/debian/changelog
  trunk/reportbug

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2008-07-04 17:29:13 UTC (rev 560)
+++ trunk/debian/changelog	2008-07-06 15:55:25 UTC (rev 561)
@@ -9,8 +9,11 @@
   * reportbuglib/reportbug.py, reportbug
     - reports status of suggested packages; thanks to Ari Pollak for the
       report; Closes: #441056
+  * reportbug
+    - fixed packages list generation for a file search if run not in a tty (or
+      via --template); thanks to Dan Jacobson for the report; Closes: #489515
 
- -- Sandro Tosi <matrixhasu at gmail.com>  Fri, 04 Jul 2008 18:44:16 +0200
+ -- Sandro Tosi <matrixhasu at gmail.com>  Sun, 06 Jul 2008 17:56:38 +0200
 
 reportbug (3.42) unstable; urgency=low
 

Modified: trunk/reportbug
===================================================================
--- trunk/reportbug	2008-07-04 17:29:13 UTC (rev 560)
+++ trunk/reportbug	2008-07-06 15:55:25 UTC (rev 561)
@@ -286,14 +286,15 @@
         ewrite("No packages match.\n")
         return (filename, None)
     elif len(packages) > 1:
+        packlist = packages.items()
+        packlist.sort()
+
         if notatty:
             print "Please re-run reportbug selecting one of these packages:"
-            for package in packlist:
-                print "  "+package
+            for pkg, files in packlist:
+                print "  "+pkg
             sys.exit(1)
 
-        packlist = packages.items()
-        packlist.sort()
         packs = []
         for pkg, files in packlist:
             if len(files) > 3:




More information about the Reportbug-commits mailing list