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

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

Traceback (most recent call last):
  File "/usr/bin/reportbug", line 1708, in ?
    main()
  File "/usr/bin/reportbug", line 1699, in main
    smtphost, options.smtpuser, options.smtppasswd, options.paranoid)
  File "/usr/share/reportbug/reportbug_submit.py", line 439, in send_report
    (sysinfo['email'] % 'n'), (sysinfo['email'] % '999999'))
  File "/usr/share/reportbug/reportbug_ui_text.py", line 198, in long_message
    ewrite(indent_wrap_text(text % args))
  File "/usr/share/reportbug/reportbug_ui_text.py", line 48, in ewrite
    sys.stderr.write(message % args)
TypeError: not enough arguments for format string

The main problem is that you're passing strings to ewrite()
without checking for formatting characters.

The fix is slightly hackish, but simple:

- --- reportbug_ui_text.py      2006-08-15 22:12:38.000000000 +0200
+++ /tmp/reportbug.patch        2006-08-22 12:47:13.370823964 +0200
@@ -45,7 +45,10 @@
     if not ISATTY:
         return
 
- -    sys.stderr.write(message % args)
+    if args:
+        sys.stderr.write(message % args)
+    else:
+        sys.stderr.write(message)
     sys.stderr.flush()
 
 log_message = ewrite

Similar bugs may be in the other frontends; I didn't check.


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

iD8DBQFE6uPG8+hUANcKr/kRAo7pAJ9BxnNoEW+tFntzK0Yhsr+Si7YrfQCglY3K
wm5aqoVftG9CZh9jUMk1JbU=
=qBft
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to