Your message dated Tue, 14 Jun 2016 16:46:30 +0000
with message-id <[email protected]>
and subject line Bug#792415: fixed in python-debian 0.1.28
has caused the Debian Bug report #792415,
regarding python-debian: Remove support for broken timezone names
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
792415: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=792415
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-debian
Version: 0.1.27
Severity: wishlist
Tags: patch

Hi!

As pointed out in
<https://lists.debian.org/debian-policy/2015/06/msg00034.html>, the
changelog trailer part of the regex to support timezone names is bogus.
And it seems the best thing to do is to remove it instead of fixing it.
For more details either see tha above mail or the commit message on the
attached patch. Beware, that the patch has not been tested!

Thanks,
Guillem
From ca8b8d2932d0652cc1d1b0e0686eb228e98afe67 Mon Sep 17 00:00:00 2001
From: Guillem Jover <[email protected]>
Date: Tue, 14 Jul 2015 06:00:49 +0200
Subject: [PATCH] changelog: Remove support for broken timezone names
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The Debian changelog trailer regex intended to support a timezone name
inside parenthesis, like this:

 -- Name <[email protected]>  Sat, 30 May 2015 03:18:43 +0200 (CEST)

is bogus, and it only accepts one character. As in:

 -- Name <[email protected]>  Sat, 30 May 2015 03:18:43 +0200 (C)

which while also “valid”, as per RFC822, they are pretty much useless
as per RFC5322. It seems the regex was “inherited” from the dpkg
implementation which has kept that part unchanged since its inception
in dpkg 1.3.0, 1996-08.

So let's just drop it instead of fixing the regex, given that the
timezone name has never been accepted, many time-parsing functions
ignore it, it is redundant, declared obsolete by RFC5322 and Debian
policy dropped an explicit reference to it due to bug 569174.

Signed-off-by: Guillem Jover <[email protected]>
---
 lib/debian/changelog.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/debian/changelog.py b/lib/debian/changelog.py
index d62b392..4c3ffae 100644
--- a/lib/debian/changelog.py
+++ b/lib/debian/changelog.py
@@ -208,10 +208,10 @@ topline = re.compile(r'^(\w%(name_chars)s*) \(([^\(\) \t]+)\)'
 blankline = re.compile('^\s*$')
 change = re.compile('^\s\s+.*$')
 endline = re.compile('^ -- (.*) <(.*)>(  ?)((\w+\,\s*)?\d{1,2}\s+\w+\s+'
-            '\d{4}\s+\d{1,2}:\d\d:\d\d\s+[-+]\d{4}(\s+\([^\\\(\)]\))?\s*)$')
+            '\d{4}\s+\d{1,2}:\d\d:\d\d\s+[-+]\d{4}\s*)$')
 endline_nodetails = re.compile('^ --(?: (.*) <(.*)>(  ?)((\w+\,\s*)?\d{1,2}'
                 '\s+\w+\s+\d{4}\s+\d{1,2}:\d\d:\d\d\s+[-+]\d{4}'
-                '(\s+\([^\\\(\)]\))?))?\s*$')
+                '))?\s*$')
 keyvalue= re.compile('^([-0-9a-z]+)=\s*(.*\S)$', re.IGNORECASE)
 value_re = re.compile('^([-0-9a-z]+)((\s+.*)?)$', re.IGNORECASE)
 xbcs_re = re.compile('^X[BCS]+-', re.IGNORECASE)
-- 
2.4.3.573.g4eafbef


--- End Message ---
--- Begin Message ---
Source: python-debian
Source-Version: 0.1.28

We believe that the bug you reported is fixed in the latest version of
python-debian, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stuart Prescott <[email protected]> (supplier of updated python-debian package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 15 Jun 2016 00:45:45 +1000
Source: python-debian
Binary: python-debian python3-debian
Architecture: source
Version: 0.1.28
Distribution: unstable
Urgency: medium
Maintainer: Debian python-debian Maintainers 
<[email protected]>
Changed-By: Stuart Prescott <[email protected]>
Closes: 634849 761298 792415 807351
Description: 
 python3-debian - Python 3 modules to work with Debian-related data formats
 python-debian - Python modules to work with Debian-related data formats
Changes:
 python-debian (0.1.28) unstable; urgency=medium
 .
   * Change comment handling code in test suite to fix building with updated
     apt packages, with thanks to Neil Williams and Barry Warsaw for the patches
     (Closes: #807351).
   * Add support for uncompressed control.tar deb member (Closes: #761298).
   * Bump standards-version to 3.9.8 (no changes required).
   * Update Vcs URLs to https ones.
   * Remove support for broken timezone names from changelog parsing, with
     thanks to Guillem Jover for the patch (Closes: #792415).
   * Allow changelog entries to be accessed by sequence number or by version
     string (Closes: #634849).
Checksums-Sha1: 
 5d8bc63be580d450a7b6e8384c44c11a9627c5f9 2248 python-debian_0.1.28.dsc
 3721655d58a3608c89c361180227945297ecbd40 292404 python-debian_0.1.28.tar.xz
Checksums-Sha256: 
 01f33ff9cc0c365d51e960cfddaa3729a525b0ce3d5ea3725fcd71cafff85c4c 2248 
python-debian_0.1.28.dsc
 355edeaa0e2d5a46e4b12c83c7a17386526af4fee34c1d4054fc03bd4f0adf00 292404 
python-debian_0.1.28.tar.xz
Files: 
 c0de6876204c9f3f4c8523f04376c4f8 2248 python optional python-debian_0.1.28.dsc
 1c4bafc1116dfb759b7c88af55d9215a 292404 python optional 
python-debian_0.1.28.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJXYBqcAAoJELvBfrsTlvL30fEP/iDUZiCn0+P/BTckYRkNND1s
ULPOUTmvz8dCui6VcT65MsnfpEfHkFra6F2ANm7rOzfNTNFQXdtQlQfEwbrJOCoL
pdr2hYl4P9mX+fvWE1TTeqNvkr6j+XX3qR02JweW474V8SVOEziLILYN/1yUJLWe
JKisuCZHQUZqLZ7gBSCI9jX7Z2SPwQYcNeRegpdD3FFpeAiLRng8UNRHA67cn9/i
4UuDN5cTC1Z5pGaxAUH1GCkPu3UwTrWTjnK8G8EnyTtSXry3h2tXN9pncJ8Zzc5j
eyUGgW75LlN5mp7GJznVXKlEZ9anwhPArCadiqTLw7d/GsN7vL+AomRSEPlFDajw
buuysDNrBgd6jqJiuQVD7n5sy0NYF3KlNX8F8V6P0NiGOW23xoe+lboZf/ZBlAu1
9o9j1JSkK9yfltK3ubt3+zMPMlDYuFxHSaHoIdGsFPulWeovRoOMAcTKPTYYM2bW
wFAYW8IAq1jZqPc3IGPXCgRI+ol5rCpPxvibcKgDuWORFeQ25/jYiTsOCGXhYOps
I/0b6cNNM64P3zD2YSwOmUtIcUnCKJ1LFWX05dJq5s94nGSC1S+5XdgyKmXVJUL1
oMSiG1+pq3V/YxP3vdU0Ire+9RzrgzujmVhIZa1M3V22EhNoTTSAswLgAPROwKzf
lpyGSvl/6OewgMVUa4d9
=xnmV
-----END PGP SIGNATURE-----

--- End Message ---
-- 
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-python-debian-maint

Reply via email to