[Reportbug-maint] Bug#579596: reportbug: not accurate check for "<pkg>: subject"

Sandro Tosi morph at debian.org
Wed Apr 28 21:17:01 UTC 2010

Package: reportbug
Version: 4.12.1
Severity: normal

<KiBi> morph: I'm a bit wondering why sometimes the package name isn't mentioned in the subject. It seems to happen with long subjects; would that be an accurate observation or just a coincidence?
<morph> KiBi: about the subject, the <pkg> is prepended only if not in expert mode
<morph> but I think you're using almost always the same conf...
<KiBi> I am indeed
<KiBi> morph: http://paste.debian.net/70765/
<morph> KiBi: you pass the subject with --subject right?
<KiBi> No, I type it at the subject prompt.
* sene has quit (Quit: Saindo)
<KiBi> morph: http://paste.debian.net/70766/
<morph> KiBi: that's the curpit: re.match(r"\S+:\s", subject)

        if package != 'wnpp' and prompted and mode < MODE_EXPERT:
            if foundfile:
                subject = foundfile + ": " + subject
                ewrite("Rewriting subject to '%s'\n", subject)
            elif (not re.match(r"\S+:\s", subject) and package not in subject):
                subject = package + ": " + subject
                ewrite("Rewriting subject to '%s'\n", subject)

-- Package-specific info:
** Environment settings:
DEBEMAIL="morph at debian.org"

** /home/morph/.reportbugrc:
reportbug_version "3.99.0"
mode expert
ui text

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages reportbug depends on:
ii  apt                    Advanced front-end for dpkg
ii  python                        2.5.4-9    An interactive high-level object-o
ii  python-reportbug              4.12.1     Python modules for interacting wit

reportbug recommends no packages.

Versions of packages reportbug suggests:
ii  debconf-utils        1.5.28              debconf utilities
ii  debsums              2.0.48              tool for verification of installed
ii  dlocate              1.02                fast alternative to dpkg -L and dp
ii  emacs22-bin-common   22.3+1-1.2          The GNU Emacs editor's shared, arc
ii  emacs23-bin-common   23.1+1-6            The GNU Emacs editor's shared, arc
ii  file                 5.04-1              Determines file type using "magic"
ii  gnupg                1.4.10-2            GNU privacy guard - a free PGP rep
ii  postfix [mail-transp 2.7.0-1             High-performance mail transport ag
ii  python-gtk2          2.16.0-2            Python bindings for the GTK+ widge
pn  python-gtkspell      <none>              (no description available)
ii  python-urwid           curses-based UI/widget library for
ii  python-vte           1:0.24.0-2          Python bindings for the VTE widget
ii  xdg-utils            1.0.2+cvs20100307-1 desktop integration utilities from

-- no debconf information

More information about the Reportbug-maint mailing list