Bug#892278: stretch-pu: package reportbug/7.1.7+deb9u1

2018-07-03 Thread Markus Koschany

Am 03.07.2018 um 21:10 schrieb Adam D. Barratt:
> Control: tags -1 + confirmed
> 
> On Wed, 2018-03-07 at 17:53 +0100, Markus Koschany wrote:
>> as requested in #891918 I am hereby filing another stretch-pu update
>> for reportbug, so that we can fix #878088 in stable too. Please find
>> attached the debdiff.
> 
> +reportbug (7.1.7+deb9u1) stretch; urgency=medium
> 
> That version number has already been used in stretch, for the secure-
> testing removal update, so this will need to be rebased on top of that
> to become 7.1.7+deb9u2.
> 
> Assuming that doing so produces no other changes relative to the
> supplied debdiff, please go ahead; apologies for the delay.

I've rebased the changes on top of 7.1.7+deb9u1 without any changes and
uploaded it to Stretch.

Thank you

Markus



signature.asc
Description: OpenPGP digital signature


Bug#892278: stretch-pu: package reportbug/7.1.7+deb9u1

2018-07-03 Thread Adam D. Barratt
Control: tags -1 + confirmed

On Wed, 2018-03-07 at 17:53 +0100, Markus Koschany wrote:
> as requested in #891918 I am hereby filing another stretch-pu update
> for reportbug, so that we can fix #878088 in stable too. Please find
> attached the debdiff.

+reportbug (7.1.7+deb9u1) stretch; urgency=medium

That version number has already been used in stretch, for the secure-
testing removal update, so this will need to be rebased on top of that
to become 7.1.7+deb9u2.

Assuming that doing so produces no other changes relative to the
supplied debdiff, please go ahead; apologies for the delay.

Regards,

Adam



Processed: Re: Bug#892278: stretch-pu: package reportbug/7.1.7+deb9u1

2018-07-03 Thread Debian Bug Tracking System
Processing control commands:

> tags -1 + confirmed
Bug #892278 [release.debian.org] stretch-pu: package reportbug/7.1.7+deb9u1
Added tag(s) confirmed.

-- 
892278: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892278
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#892278: stretch-pu: package reportbug/7.1.7+deb9u1

2018-07-03 Thread Markus Koschany


Am 03.07.2018 um 01:36 schrieb Andreas Beckmann:
> On Wed, 07 Mar 2018 17:53:39 +0100 Markus Koschany  wrote:
>> as requested in #891918 I am hereby filing another stretch-pu update
>> for reportbug, so that we can fix #878088 in stable too. Please find
>> attached the debdiff.
> 
> Please also include the one-line change to disable jessie-pu in the
> release.debian.org template: #902379

Please don't delay this issue any further. If you want to fix #902379 in
Stretch it should be handled separately.

Markus



signature.asc
Description: OpenPGP digital signature


Bug#892278: stretch-pu: package reportbug/7.1.7+deb9u1

2018-07-02 Thread Andreas Beckmann
On Wed, 07 Mar 2018 17:53:39 +0100 Markus Koschany  wrote:
> as requested in #891918 I am hereby filing another stretch-pu update
> for reportbug, so that we can fix #878088 in stable too. Please find
> attached the debdiff.

Please also include the one-line change to disable jessie-pu in the
release.debian.org template: #902379


Andreas



Bug#892278: stretch-pu: package reportbug/7.1.7+deb9u1

2018-03-07 Thread Markus Koschany
Package: release.debian.org
Severity: normal
Tags: stretch
User: release.debian@packages.debian.org
Usertags: pu

Hi there,

as requested in #891918 I am hereby filing another stretch-pu update
for reportbug, so that we can fix #878088 in stable too. Please find
attached the debdiff.

Thanks,

Markus
diff -Nru reportbug-7.1.7/bin/reportbug reportbug-7.1.7+deb9u1/bin/reportbug
--- reportbug-7.1.7/bin/reportbug   2017-05-29 22:00:17.0 +0200
+++ reportbug-7.1.7+deb9u1/bin/reportbug2018-03-03 22:33:28.0 
+0100
@@ -32,6 +32,7 @@
 import optparse
 import re
 import locale
+import requests
 import subprocess
 import shlex
 import email
@@ -1926,6 +1927,36 @@
 listcc += ui.get_multiline(
 'Enter any additional addresses this report should be sent to; 
press ENTER after each address.')
 
+# If the bug is reported against a package with a version that possibly
+# indicates a security update add the security or LTS team to CC
+# after user confirmation
+if pkgversion and package and not self.options.offline and mode > 
MODE_NOVICE and utils.is_security_update(package, pkgversion):
+if ui.yes_no('Do you want to report a regression because of a 
security update? ',
+ 'Yes, please inform the LTS and security teams.',
+ 'No or I am not sure.', True):
+distnumber = re.search('[+~]deb(\d+)u\d+', pkgversion).group(1)
+support = 'none'
+email_address = 'none'
+try:
+r = 
requests.get('https://security-tracker.debian.org/tracker/distributions.json', 
timeout=self.options.timeout)
+data = r.json()
+for key, value in data.items():
+if distnumber == value['major-version']:
+support = value['support']
+email_address = value['contact']
+break
+
+if support != 'none' and 
utils.check_email_addr(email_address):
+listcc += [email_address]
+else:
+raise
+
+except requests.exceptions.RequestException:
+ewrite('Unable to connect to 
security-tracker.debian.org.\n'
+   'Please try again later or contact the LTS or 
security team via email directly.\n')
+except:  # catch-all
+ewrite('No support team contact address could be 
identified.\n')
+
 if severity and rtype:
 severity = debbugs.convert_severity(severity, rtype)
 
diff -Nru reportbug-7.1.7/debian/changelog 
reportbug-7.1.7+deb9u1/debian/changelog
--- reportbug-7.1.7/debian/changelog2017-05-29 22:00:17.0 +0200
+++ reportbug-7.1.7+deb9u1/debian/changelog 2018-03-03 22:33:28.0 
+0100
@@ -1,3 +1,13 @@
+reportbug (7.1.7+deb9u1) stretch; urgency=medium
+
+  * Non-maintainer upload.
+  * Backport the fix for Debian bug #878088. Notify the security team or LTS
+team about a possible regression if reporting a bug against a package
+containing a security fix.
+  * python3-reportbug: Depend on python3-apt to fix #878088.
+
+ -- Markus Koschany   Sat, 03 Mar 2018 22:33:28 +0100
+
 reportbug (7.1.7) unstable; urgency=medium
 
   * reportbug/utils.py
diff -Nru reportbug-7.1.7/debian/control reportbug-7.1.7+deb9u1/debian/control
--- reportbug-7.1.7/debian/control  2017-05-29 22:00:17.0 +0200
+++ reportbug-7.1.7+deb9u1/debian/control   2018-03-03 22:33:28.0 
+0100
@@ -36,7 +36,7 @@
 Package: python3-reportbug
 Section: python
 Architecture: all
-Depends: ${misc:Depends}, ${python3:Depends}, apt, python3-debian, 
python3-debianbts (>= 1.13), file, python3-requests
+Depends: ${misc:Depends}, ${python3:Depends}, apt, python3-debian, 
python3-debianbts (>= 1.13), file, python3-requests, python3-apt
 Suggests: reportbug
 Description: Python modules for interacting with bug tracking systems
  reportbug is a tool designed to make the reporting of bugs in Debian
Binärdateien 
/tmp/BreEiHKSHs/reportbug-7.1.7/reportbug/__pycache__/__init__.cpython-35.pyc 
und 
/tmp/ijRwNIQr3y/reportbug-7.1.7+deb9u1/reportbug/__pycache__/__init__.cpython-35.pyc
 sind verschieden.
Binärdateien 
/tmp/BreEiHKSHs/reportbug-7.1.7/reportbug/__pycache__/__init__.cpython-36.pyc 
und 
/tmp/ijRwNIQr3y/reportbug-7.1.7+deb9u1/reportbug/__pycache__/__init__.cpython-36.pyc
 sind verschieden.
diff -Nru reportbug-7.1.7/reportbug/utils.py 
reportbug-7.1.7+deb9u1/reportbug/utils.py
--- reportbug-7.1.7/reportbug/utils.py  2017-05-29 22:00:17.0 +0200
+++ reportbug-7.1.7+deb9u1/reportbug/utils.py   2018-03-03 22:33:28.0 
+0100
@@ -39,6 +39,8 @@
 import socket
 import subprocess
 import pipes
+import apt
+import gzip
 
 from .urlutils import open_url
 from string import ascii_letters, digits
@@ -130