Your message dated Sun, 24 Sep 2017 03:19:00 +0000
with message-id <[email protected]>
and subject line Bug#868249: fixed in python-debian 0.1.31
has caused the Debian Bug report #868249,
regarding deb822.PkgRelation.str ignores archqual
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.)


-- 
868249: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=868249
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python3-debian
Version: 0.1.30
Severity: normal
Tags: patch

Hi,

Using deb822.PkgRelation with exiv2 (0.26-1) I noticed that it drops the archqual fields.

A simple test case could be:
import debian.deb822 as d
b = 'python:native'
print (d.PkgRelation.str(d.PkgRelation.parse_relations(b)))

The fix is quite straight forward:

diff --git a/lib/debian/deb822.py b/lib/debian/deb822.py
index 7d67b3f..26f4b68 100644
--- a/lib/debian/deb822.py
+++ b/lib/debian/deb822.py
@@ -1011,6 +1011,8 @@ class PkgRelation(object):

        def pp_atomic_dep(dep):
            s = dep['name']
+            if dep.get('archqual') is not None:
+                s += ':%s' % dep['archqual']
            if dep.get('version') is not None:
                s += ' (%s %s)' % dep['version']
            if dep.get('arch') is not None:

Please consider applying this fix.

-- System Information:
Debian Release: 9.0
 APT prefers stable-debug
 APT policy: (600, 'stable-debug'), (600, 'proposed-updates'), (600, 'stable'), 
(500, 'oldstable'), (60, 'testing-debug'), (60, 'testing'), (50, 
'unstable-debug'), (50, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf

Kernel: Linux 4.9.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages python3-debian depends on:
ii  python3          3.5.3-1
ii  python3-chardet  2.3.0-2
ii  python3-six      1.10.0-4

Versions of packages python3-debian recommends:
ii  python3-apt  1.4.0~beta3

Versions of packages python3-debian suggests:
ii  gpgv  2.1.18-6

-- no debconf information

--
"Anytime you have a fifty-fifty chance of getting something right, there's a
90 percent probability you'll get it wrong."
-- The 50-50-90 rule
Saludos /\/\ /\ >< `/
commit f928f6857e17efd6c00053f7c585366798efe708
Author: Maximiliano Curia <[email protected]>
Date:   Thu Jul 13 20:16:52 2017 +0200

    deb822.PkgRelation.str handle archqual

diff --git a/lib/debian/deb822.py b/lib/debian/deb822.py
index 7d67b3f..26f4b68 100644
--- a/lib/debian/deb822.py
+++ b/lib/debian/deb822.py
@@ -1011,6 +1011,8 @@ class PkgRelation(object):
 
         def pp_atomic_dep(dep):
             s = dep['name']
+            if dep.get('archqual') is not None:
+                s += ':%s' % dep['archqual']
             if dep.get('version') is not None:
                 s += ' (%s %s)' % dep['version']
             if dep.get('arch') is not None:

Attachment: signature.asc
Description: PGP signature


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

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: Sun, 24 Sep 2017 12:38:37 +1000
Source: python-debian
Binary: python-debian python3-debian
Architecture: source
Version: 0.1.31
Distribution: unstable
Urgency: medium
Maintainer: Debian python-debian Maintainers 
<[email protected]>
Changed-By: Stuart Prescott <[email protected]>
Closes: 851324 863724 868249
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.31) unstable; urgency=medium
 .
   * Fix codename for 'rex' release, With thanks to Philipp Hahn
     <[email protected]> for the report and patch (Closes: #863724).
   * Include archqual in the deb822.PkgRelation.str output, wih thanks to
     Maximiliano Curia <[email protected]> for the report and patch
     (Closes: #868249).
   * Use unittest rather than nose for test suite discovery (Closes: #851324).
   * Update Standards-Version to 4.1.0 (no changes required).
   * Use dpkg's pkg-info.mk to get package version in d/rules.
   * Add debian/HACKING with some notes about the package.
Checksums-Sha1: 
 14ccefa6a44603a141fdff7344590e317ba59ecd 2328 python-debian_0.1.31.dsc
 b685408ddf57cc0df4f0b42b0e9e44f180a96d56 295720 python-debian_0.1.31.tar.xz
Checksums-Sha256: 
 3a477f31919bbe0c156ba58df62e21ba5757ebcfb3ed2da0b13af3d38d42cda3 2328 
python-debian_0.1.31.dsc
 942968340c5b8fbabe89f1081940ec7baeca0cdbd7f82bdcbda98da511ce35b3 295720 
python-debian_0.1.31.tar.xz
Files: 
 54a24e336969ab6bfcc8acfe38202fc9 2328 python optional python-debian_0.1.31.dsc
 21a296f31521862610bbc4d7f7f74c97 295720 python optional 
python-debian_0.1.31.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEkOLSwa0Uaht+u4kdu8F+uxOW8vcFAlnHH+EACgkQu8F+uxOW
8vdLwQ//emnMiUZhQz9gBPyYAbJCRk0Pg+PGtYP1hLUPkmqIq6AtiKBWk02oa4c5
esCP/JKSJ5nzfY+K1tFEOqCUflXZADWTCLxREbDYQysvoioTikLpzK19of6rYBK/
8yOu6fTZMopKUUMO2rCTHG1OZw+2hK9N8ziNTCn2vYvvMoyqcPFuLEzODxQAuihD
7fzLapHyQ0el3IZhkrz3BLJnv75tzbmQr2TF+1PjgO3+BSNXYxrXhwLSa9dstmO5
Bae9xGafwdHaAMYNYE1keu/VnTRstCG6lujqienn8rvkhkItnVlvNSZEH+IcdOYH
bsv0chIk5wU1gwhlPHD2NP8eWVA+rqdQwpLFaF4l0xwdJQWCu/Asut1MbkSzbYvz
limaahHqg1gRPSUJM3CAsyAtR21NrapQ+ZsWAQQW0Mp3Zgw23lhAqpNceew+vXhP
WTMYO3uOSOZxYh/G9zvPZnq478knDmA2EyzkCU2VKALK5wkitGXp590CUFlzu951
+ocS9BvY69U3VPu3HYgXsLakSykp1FAcOLR1JUCGiVO3bdZAMPjzbaD+izXU9EIQ
rJ2On+ikXbMWP4TQwQULDui4vhJsrSkkvyav4TxCSeQn5fnQWluI65lsRY217a3W
mTx+3tzwLtIMu2rswwjo11pap/xjI9tfIeZ2tfUhaVDSqTJ6A14=
=PXDY
-----END PGP SIGNATURE-----

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

Reply via email to