[Reportbug-maint] Bug#497024: AVAILABLE_UIS in reportbug.py must be copied wrong patch
Luca Bruno
lethalman88 at gmail.com
Fri Aug 29 10:01:32 UTC 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I'm sorry I've attached the wrong patch, I'll paste it here directly:
- --- usr/bin/reportbug.orig 2008-08-29 11:44:14.000000000 +0200
+++ usr/bin/reportbug 2008-08-29 11:35:40.000000000 +0200
@@ -821,7 +821,7 @@
sys.argv = sys.argv[:1] + list(args)
if options.interface:
interface = options.interface
- - if interface in ('gnome', 'newt',):
+ if interface in ('gnome2', 'newt',):
ui.long_message("The %s interface is not supported. Unless you "
"are debugging reportbug, please do not use it. "
"If you are debugging reportbug, please DO NOT "
- --- usr/share/reportbug/reportbuglib/reportbug.py.orig 2008-08-29 11:35:12.000
+++ usr/share/reportbug/reportbuglib/reportbug.py 2008-08-29 11:45:21.000
@@ -39,6 +39,7 @@
import socket
import subprocess
import imp
+from copy import copy
import debianbts
@@ -52,11 +53,11 @@
'Justification', 'Followup-For', 'Owner', 'User', 'Usertags')
VALID_UIS = ['newt', 'text', 'gnome2', 'urwid']
- -AVAILABLE_UIS = VALID_UIS
+AVAILABLE_UIS = copy (VALID_UIS)
for ui in VALID_UIS:
module_name = 'reportbug_ui_%(ui)s' % vars()
try:
- - imp.find_module(module_name)
+ imp.find_module(module_name, os.path.dirname (__file__))
except ImportError:
AVAILABLE_UIS.remove(ui)
- --
http://syx.googlecode.com - Smalltalk YX
http://lethalman.blogspot.com - Thoughts about computer technologies
http://www.ammazzatecitutti.org - Ammazzateci tutti
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAki3yP0ACgkQw9Qj+8Kak3G4EQCeJMM7qFv9xhZIDs7QO07Nzaa2
m2MAn1MPLuf3ObAZcM523j9iL5VzSBiR
=Lbnd
-----END PGP SIGNATURE-----
More information about the Reportbug-maint
mailing list