[Reportbug-maint] Bug#667663: reportbug: urwid UI allows us to cancel a package selection, but does not handle it well Package: reportbug

Valentin Lorentz progval at progval.net
Thu Apr 5 19:06:37 UTC 2012


Package: reportbug
Version: 6.3.2
Severity: minor
Tags: upstream

Dear Maintainer,

(note that I installed reportbug from Git, so it may not apply to the
release.)

How to reproduce the bug:
* Select UI urwid
* type the name of a package you do not have installed
* "A package named "reportbug" does not appear to be installed; do you
want to search for a similar-looking filename in an installed package?"
=> answer yes
* press "cancel"
* First odd message: "A package named 'reportbug' does not appear to be
installed on your system; however, '-1' contains a file named
'reportbug'.  Do you want to file your report on the package reportbug
found?"
* press "ok"

and crash.

Here is the full output:

Note: bug reports are publicly archived (including the email address of
the submitter).
Detected character set: UTF-8
Please change your locale if this is incorrect.

Using 'Valentin Lorentz <progval at progval.net>' as your from address.
Getting status for reportbug...

Finding package for 'reportbug'...


Getting status for -1...
Traceback (most recent call last):
  File "/usr/local/bin/reportbug", line 5, in <module>
    pkg_resources.run_script('reportbug==6.3.1', 'reportbug')
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 499, in
run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1235,
in run_script
    execfile(script_filename, namespace, namespace)
  File
"/usr/local/lib/python2.7/dist-packages/reportbug-6.3.1-py2.7.egg/EGG-
INFO/scripts/reportbug", line 2198, in <module> main()
  File
"/usr/local/lib/python2.7/dist-packages/reportbug-6.3.1-py2.7.egg/EGG-
INFO/scripts/reportbug", line 1077, in main return
iface.user_interface() File
"/usr/local/lib/python2.7/dist-packages/reportbug-6.3.1-py2.7.egg/EGG-
INFO/scripts/reportbug", line 1489, in user_interface status =
utils.get_package_status(package) File "/usr/local/lib/python2.7/dist-
packages/reportbug-6.3.1-py2.7.egg/reportbug/utils.py", line 341, in
get_package_status
    packarg = commands.mkarg(package)
  File "/usr/lib/python2.7/commands.py", line 82, in mkarg
    if '\'' not in x:
TypeError: argument of type 'int' is not iterable

Regards,
Valentin Lorentz



-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages reportbug depends on:
ii  apt               0.8.15.10
ii  python            2.7.2-10
pn  python-reportbug  <none>

reportbug recommends no packages.

Versions of packages reportbug suggests:
pn  debconf-utils                   <none>
pn  debsums                         <none>
pn  dlocate                         <none>
ii  emacs23-bin-common              23.4+1-2
ii  file                            5.11-1
ii  gnupg                           1.4.12-4
ii  postfix [mail-transport-agent]  2.9.1-2
ii  python-gtk2                     2.24.0-3
ii  python-gtkspell                 2.25.3-11
ii  python-urwid                    1.0.1-2
ii  python-vte                      1:0.28.2-4
ii  xdg-utils                       1.1.0~rc1+git20111210-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reportbug-maint/attachments/20120405/4899556e/attachment.pgp>


More information about the Reportbug-maint mailing list