tags 431402 patch

Hi,

Indeed it seems weird to offer the possibility to choose a non-existant
package or uninstalled package for installed packages on your system.
Here is a patch to solve this issue.

But I suspect the main issue could be triggered by the fact that dpkg -l
"ping" returns a line, maybe an old package which doesn't exist anymore,
I'm not sure. It could explain that reportbug doesn't ask to search ping
command inside existing packages, what it should do if no ping package
can be found.

Regards,
Carl Chenet
--- reportbug.ori	2009-04-11 11:24:11.000000000 +0200
+++ reportbug	2009-04-11 11:25:39.000000000 +0200
@@ -1200,10 +1200,9 @@
                         'Exit without filing a report.', False):
                         efail("Package not installed; stopping.\n")
                 elif (len(packages) > 1) or (packages[0][0] != package):
-                    this_package = [(package, 'Uninstalled/non-existent package')]
                     packages.sort()
                     package = ui.menu('Which of the following installed packages '
-                                      'is the bug in?', packages + this_package,
+                                      'is the bug in?', packages,
                                       'Select one of these packages: ',
                                       empty_ok=True)
                     if not package:

Reply via email to