[Reportbug-maint] Bug#524103: Asking for package version crashes reportbug 4.1

Carl Chenet chaica at ohmytux.com
Tue Apr 14 19:58:52 UTC 2009


Package: reportbug
Version: 4.1
Severity: important
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

When reportbug asks the user in text mode for package version, it crashes : 

reportbug --debug -A reportbug_4.0.dsc -A divers/toto/zaza.txt zozo
*** Welcome to reportbug.  Use ? for help at prompts. ***
Detected character set: UTF-8
Please change your locale if this is incorrect.

Using 'Carl Chenet <chaica at ohmytux.com>' as your from address.
Getting status for zozo...
No matching source or binary packages.
A package named "zozo" does not appear to be installed; do you want to
search for a similar-looking filename in an installed package [Y|n|q|?]?
n
Getting available info for zozo...
Traceback (most recent call last):
  File "/usr/bin/reportbug", line 1844, in <module>
    main()
  File "/usr/bin/reportbug", line 861, in main
    return iface.user_interface()
  File "/usr/bin/reportbug", line 1298, in user_interface
    '(blank OK)', empty_ok=True, force_prompt=True)
TypeError: get_string() got an unexpected keyword argument 'empty_ok'

text_ui/get_string() doesn't seem to use empty_ok parameter any more.
Here is a patch to solve the issue.

Regards,
Carl Chenet

- -- Package-specific info:
** Environment settings:
INTERFACE="text"

** /home/chaica/.reportbugrc:
reportbug_version "3.38ubuntu2"
mode standard
ui text
realname "Carl Chenet"
email "chaica at ohmytux.com"
smtphost "smtp.free.fr"

- -- System Information:
Debian Release: lenny/sid
  APT prefers hardy-updates
  APT policy: (500, 'hardy-updates'), (500, 'hardy-security'), (500, 'hardy')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24-23-generic (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages reportbug depends on:
ii  apt                      0.7.9ubuntu17.1 Advanced front-end for dpkg
ii  python                   2.5.2-0ubuntu1  An interactive high-level object-o
ii  python-central           0.6.7ubuntu0.1  register and build utility for Pyt

reportbug recommends no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFJ5Or88lge+lYYJUgRAmvsAJ4sxwMfrWFqclGPicpZZ7KIToSxJQCfai80
l/TicmuDZuM/eDosTxSZtZ4=
=XPge
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-empty_ok-not-in-ui.get_string-any-more.patch
Type: text/x-c++
Size: 1024 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reportbug-maint/attachments/20090414/0c5f8191/attachment-0001.bin>


More information about the Reportbug-maint mailing list