[Reportbug-commits] [reportbug] 03/03: BF: assure that Python string interpolation is possible for "email"

Sandro Tosi morph at moszumanska.debian.org
Sun Jan 26 19:45:36 UTC 2014


This is an automated email from the git hooks/post-receive script.

morph pushed a commit to branch yoh_master
in repository reportbug.

commit 73becccd014e25afa3dcbc287617757b7d025f3b
Author: Yaroslav Halchenko <debian at onerussian.com>
Date:   Wed Dec 22 18:42:34 2010 -0500

    BF: assure that Python string interpolation is possible for "email"
    
    ideally logic should have been fixed -- and rtype should not have being
    assigned debbugs for the email target.
    
    This fixes part of the problem -- whenever target email has no %s in it.
---
 reportbug/submit.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/reportbug/submit.py b/reportbug/submit.py
index 5cf26cd..d286044 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reportbug/reportbug.git



More information about the Reportbug-commits mailing list