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 <cha...@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 "cha...@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-----
>From 2108ee8a599065f0106f906522a3c36c6e6ae3c1 Mon Sep 17 00:00:00 2001 From: Carl Chenet <carl.che...@ohmytux.com> Date: Tue, 14 Apr 2009 21:53:05 +0200 Subject: [PATCH] empty_ok not in ui.get_string() any more. --- bin/reportbug | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/bin/reportbug b/bin/reportbug index 528ece3..8839f83 100755 --- a/bin/reportbug +++ b/bin/reportbug @@ -1282,7 +1282,7 @@ class UI(object): if not (isvirtual or notatty): pkgversion = ui.get_string('Please enter the version of the ' 'package this report applies to ' - '(blank OK)', empty_ok=True, force_prompt=True) + '(blank OK)', force_prompt=True) elif (check_available and not (self.options.kudos or notatty or self.options.offline) and state == 'installed' and bts == 'debian'): arch = utils.get_arch() -- 1.5.4.3