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

Sandro Tosi morph at debian.org
Sat Apr 18 15:15:56 UTC 2009


On Tue, Apr 14, 2009 at 21:58, Carl Chenet <chaica at ohmytux.com> wrote:
> Package: reportbug
> Version: 4.1
> Severity: important
> Tags: patch

Mh, are you sure this bug affect version 4.1? the template below is
not from reportbug >4.* as you need to have python-reportbug installed
(that's not listed below).

> 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.

This is fixed in commit 90b380ce and it's included in 4.1 release,
here an example to demonstrate this:

$ reportbug --debug zozo
*** Welcome to reportbug.  Use ? for help at prompts. ***
Detected character set: UTF-8
Please change your locale if this is incorrect.

Using 'Sandro Tosi <morph at debian.org>' 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...
Please enter the version of the package this report applies to (blank OK)
>
Will send report to Debian (per lsb_release).
Querying Debian BTS for reports on zozo (source)...
^CUnable to connect to Debian BTS; continue [y|N|?]?
reportbug: exiting due to user interrupt.
morph at zion:~$ reportbug --debug -O zozo
*** Welcome to reportbug.  Use ? for help at prompts. ***
Detected character set: UTF-8
Please change your locale if this is incorrect.

Using 'Sandro Tosi <morph at debian.org>' 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...
Please enter the version of the package this report applies to (blank OK)
>
Will send report to Debian (per lsb_release).

Please briefly describe your problem (you can elaborate in a moment;
an empty response will stop reportbug). This will be the bug email
subject, so write a concise summary of what
is wrong with the package, for example, "fails to send email" or "does
not start with -q option specified."
>
reportbug: exiting due to user interrupt.
$ reportbug --version
reportbug 4.1

Thus, I think this bug can be close, but wanted you to crosscheck this.

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi





More information about the Reportbug-maint mailing list