[Reportbug-maint] Bug#607850: reportbug: enable full specification (e.g. otherpkgs) of additional origins under /etc/dpkg/origins/
Yaroslav Halchenko
debian at onerussian.com
Wed Dec 22 23:45:27 UTC 2010
Package: reportbug
Version: 4.12.6
Severity: wishlist
I was looking into creation of custom /etc/dpkg/origins/ for our neurodebian
(http://neuro.debian.net) repository. Unfortunately, debianbts.py code cares
only about vendor and bugs fields, and sets others (e.g. otherpkgs, mirrors,
etc) to empty, and there seems to be no ability to customi9ze them anyhow,
besides submitting a patch against debianbts.py to add full definition to be
added to the original 'SYSTEMS', which seems to demolish the point of having
/etc/dpkg/origins/
Another side of the coin (could be a separate bug report but since there is
bulk of them already and it is related posting here): with a custom origin
available under /etc/dpkg/origins/, and mailto: target with a fixed email
address (without %s, but I am not saying that I am using debbugs -- just
mailto), reportbug fails due to inability to inject n or 99999 into
informative message at the end of the dialog ;):
Traceback (most recent call last):
File "/tmp/reportbug/bin/reportbug", line 2098, in <module>
main()
File "/tmp/reportbug/bin/reportbug", line 1045, in main
return iface.user_interface()
File "/tmp/reportbug/bin/reportbug", line 2090, in user_interface
self.options.draftpath)
File "/tmp/reportbug/reportbug/submit.py", line 489, in send_report
(sysinfo['email'] % 'n'), (sysinfo['email'] % '999999'))
TypeError: not all arguments converted during string formatting
so for some reason rtype is taken to be debbugs:
if rtype == 'mailto':
rtype = 'debbugs'
dontquery = True
and dontquery is not participating in definition of send_report, thus shit gets
loose -- send_report considers submission as for debbugs so expects '%s' being
there. Quick fix (attached) is to verify first that '%s' is actually in the
"email".
-- Package-specific info:
** Environment settings:
EDITOR="/usr/bin/vim"
VISUAL="/usr/bin/vim"
REPORTBUGEMAIL="debian at onerussian.com"
DEBEMAIL="debian at onerussian.com"
EMAIL="yoh at onerussian.com"
DEBFULLNAME="Yaroslav Halchenko"
INTERFACE="text"
** /home/yoh/.reportbugrc:
reportbug_version "3.17"
mode standard
ui text
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (900, 'testing'), (800, 'unstable'), (300, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages reportbug depends on:
ii apt 0.8.6 Advanced front-end for dpkg
ii python 2.6.6-3+squeeze1 interactive high-level object-orie
ii python-reportbug 4.12.6 Python modules for interacting wit
reportbug recommends no packages.
Versions of packages reportbug suggests:
pn debconf-utils <none> (no description available)
pn debsums <none> (no description available)
ii dlocate 1.02 fast alternative to dpkg -L and dp
ii emacs23-bin-common 23.2+1-4 The GNU Emacs editor's shared, arc
ii file 5.04-5 Determines file type using "magic"
ii gnupg 1.4.10-4 GNU privacy guard - a free PGP rep
ii msmtp-mta [mail-tran 1.4.21-1 light SMTP client with support for
ii python-gtk2 2.17.0-4 Python bindings for the GTK+ widge
pn python-gtkspell <none> (no description available)
ii python-urwid 0.9.9.1-1 curses-based UI/widget library for
ii python-vte 1:0.24.3-1 Python bindings for the VTE widget
ii xdg-utils 1.0.2+cvs20100307-2 desktop integration utilities from
-- no debconf information
-------------- next part --------------
>From 0a3c034a9f0472cf552177fb12f72a28c70c11df Mon Sep 17 00:00:00 2001
From: Yaroslav Halchenko <debian at onerussian.com>
Date: Wed, 22 Dec 2010 18:42:34 -0500
Subject: [PATCH 1/3] BF: assure that Python string interpolation is possible for "email"
---
reportbug/submit.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/reportbug/submit.py b/reportbug/submit.py
index 5cf26cd..3971d7e 100644
--- a/reportbug/submit.py
+++ b/reportbug/submit.py
@@ -478,7 +478,8 @@ def send_report(body, attachments, mua, fromaddr, sendto, ccaddr, bccaddr,
for address in cclist:
ewrite(' %s\n', address)
- if not (exinfo or kudos) and rtype == 'debbugs' and sysinfo and not failed:
+ if not (exinfo or kudos) and rtype == 'debbugs' and sysinfo and not failed \
+ and '%s' in sysinfo['email']:
ewrite('\n')
ui.long_message(
"""If you want to provide additional information, please wait to
--
1.7.2.3
More information about the Reportbug-maint
mailing list