Bug#868154: reportbug: displays MIME type of attachment

2017-09-09 Thread Nis Martensen
control: tags -1 patch

On 12 Jul 2017 Thorsten Glaser wrote:
> I think the “application/x-xz; charset=binary” line should go
> elsewhere, perhaps into the eMail?

It is the output of a debug print() inserted while porting the code to
python 3. It can just be dropped. Patch attached.
>From bf3724a200d9db947c77c1d9ce0eb61536a0bade Mon Sep 17 00:00:00 2001
From: Nis Martensen 
Date: Sat, 9 Sep 2017 23:41:48 +0200
Subject: [PATCH 3/3] Drop leftover debug print()

---
 reportbug/submit.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/reportbug/submit.py b/reportbug/submit.py
index 4940538..1eb1b71 100644
--- a/reportbug/submit.py
+++ b/reportbug/submit.py
@@ -147,7 +147,6 @@ def mime_attach(body, attachments, charset, body_charset=None):
 cset = charset
 info = Popen(['file', '--mime', '--brief', attachment],
  stdout=PIPE, stderr=STDOUT).communicate()[0].decode('ascii')
-print(info)
 if info:
 match = re.match(r'([^;, ]*)(,[^;]+)?(?:; )?(.*)', info)
 if match:
-- 
2.11.0



Bug#868154: reportbug: displays MIME type of attachment

2017-07-12 Thread Thorsten Glaser
Package: reportbug
Version: 7.1.7
Severity: minor

[…]
Submit this report on glibc (e to edit) [y|n|a|c|E|i|l|m|p|q|d|t|s|?]? a
Choose a file to attach: glibc_2.24-12_x32.build.xz
Report will be sent to Debian Bug Tracking System 
Attachments:
 glibc_2.24-12_x32.build.xz
Submit this report on glibc (e to edit) [y|n|a|c|E|i|l|m|p|q|d|t|s|?]? y
application/x-xz; charset=binary

Sending message via /usr/sbin/sendmail...
[…]


I think the “application/x-xz; charset=binary” line should go
elsewhere, perhaps into the eMail?


-- Package-specific info:
** Environment settings:
EDITOR="/usr/bin/jupp"
VISUAL="/usr/bin/jupp"
DEBEMAIL="Thorsten Glaser "
INTERFACE="text"

** /home/tglase/.reportbugrc:
reportbug_version "6.6.6"
mode advanced
ui text

-- System Information:
Debian Release: buster/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'buildd-unstable'), (500, 'unstable')
Architecture: x32 (x86_64)
Foreign Architectures: i386, amd64

Kernel: Linux 4.9.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8)
Shell: /bin/sh linked to /bin/lksh
Init: sysvinit (via /sbin/init)

Versions of packages reportbug depends on:
ii  apt1.5~beta1
ii  python33.5.3-3
ii  python3-reportbug  7.1.7

reportbug recommends no packages.

Versions of packages reportbug suggests:
pn  claws-mail   
ii  debconf-utils1.5.62
ii  debsums  2.2.2
pn  dlocate  
pn  emacs24-bin-common | emacs25-bin-common  
ii  file 1:5.30-1
ii  gir1.2-gtk-3.0   3.22.16-1
pn  gir1.2-vte-2.91  
ii  gnupg2.1.18-8
ii  postfix [mail-transport-agent]   3.2.2-1
pn  python3-gi   
pn  python3-gi-cairo 
pn  python3-gtkspellcheck
pn  python3-urwid
ii  xdg-utils1.1.1-1

Versions of packages python3-reportbug depends on:
ii  apt1.5~beta1
ii  file   1:5.30-1
ii  python33.5.3-3
ii  python3-debian 0.1.30
ii  python3-debianbts  2.6.1
ii  python3-requests   2.12.4-1

python3-reportbug suggests no packages.

-- no debconf information