[Reportbug-maint] Bug#816375: reportbug: extis badly with --draft= option and non existing directory

Gaetano Guerriero x.guerriero at tin.it
Tue Mar 1 10:53:48 UTC 2016


Package: reportbug
Version: 6.6.6
Severity: minor
Tags: patch

Dear Maintainer,

reportbug exits with an uncatched exception and cryptic error when using
--draft= option with a non existing directory. 

$ reportbug --draft=/tmp/non-existing
  Traceback (most recent call last):
      File "/usr/bin/reportbug", line 2247, in <module>
          main()
      File "/usr/bin/reportbug", line 1062, in main
          print "The directory % does not exist; exiting." % options.draftpath
  TypeError: %d format: a number is required, not str

This is due to an error in format string.

The attached patch fixes the issue.


-- Package-specific info:
** Environment settings:
EDITOR="emacsclient"

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages reportbug depends on:
ii  apt               1.2.3
ii  python-reportbug  6.6.6
pn  python:any        <none>

reportbug recommends no packages.

Versions of packages reportbug suggests:
pn  claws-mail                         <none>
pn  debconf-utils                      <none>
pn  debsums                            <none>
pn  dlocate                            <none>
ii  emacs24-bin-common                 24.5+1-6+b1
ii  file                               1:5.25-2
ii  gnupg                              1.4.20-4
ii  nullmailer [mail-transport-agent]  1:1.13-1+b1
ii  python-gtk2                        2.24.0-4
pn  python-gtkspellcheck               <none>
pn  python-urwid                       <none>
pn  python-vte                         <none>
ii  xdg-utils                          1.1.1-1

Versions of packages python-reportbug depends on:
ii  apt               1.2.3
ii  file              1:5.25-2
ii  python-debian     0.1.27
ii  python-debianbts  2.6.0
pn  python:any        <none>

python-reportbug suggests no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-draft-with-missing-directory-was-failing-badly.patch
Type: text/x-diff
Size: 896 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reportbug-maint/attachments/20160301/a13c1553/attachment.patch>


More information about the Reportbug-maint mailing list