[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#863193: marked as done (python-apt: Package.fullname and Package.architecture() is wrong for packages with 'all' architecture.)



Your message dated Fri, 13 Apr 2018 11:35:22 +0000
with message-id <E1f6wzC-000CG5-T1@fasolo.debian.org>
and subject line Bug#863193: fixed in python-apt 1.6.0~rc3
has caused the Debian Bug report #863193,
regarding python-apt: Package.fullname and Package.architecture() is wrong for packages with 'all' architecture.
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 owner@bugs.debian.org
immediately.)


-- 
863193: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863193
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: python-apt
Version: 1.4.0~beta3
Severity: normal

Dear Maintainer,

apt.package.Package's fullname property and architecture method return the wrong architecture for packages with the 'all' architecture. A good example is the 'bash-completion' package:

$ dpkg -l bash-completion
...
ii  bash-completion         1:2.1-4.3        all              programmable completion for the bash shell


$ python
...
>>> cache = apt.Cache()
>>> pkg = cache['bash-completion']
>>> pkg.fullname
'bash-completion:amd64'
>>> pkg.architecture()
'amd64'
>>> pkg._pkg.architecture
'amd64'
>>> pkg.versions
<VersionList: ['1:2.1-4.3']>
>>> pkg.installed.architecture
'all'
>>> pkg.candidate.architecture
'all'


I'm not sure if this is even an issue with python-apt but rather an issue with libapt-pkg.
I'm also not sure what Package.architecture() should report in case the architecture of the installed and candidate package version differ, probably the installed architecture.
Last but not least here is a small test script:

#!/usr/bin/python3

import apt

cache = apt.cache.Cache()
for pkg in cache:
  pkg_arch = pkg.architecture()
  if pkg.installed:
    inst_arch = pkg.installed.architecture
    if pkg_arch != inst_arch:
      print("%s: pkg.architecture() != pkg.installed.architecture: %s != %s" % (pkg.name, pkg_arch, inst_arch))
  if pkg.candidate:
    cand_arch = pkg.candidate.architecture
    if pkg_arch != cand_arch:
      print("%s: pkg.architecture() != pkg.candidate.architecture: %s != %s" % (pkg.name, pkg_arch, cand_arch))


Best,

Michael Schaller


-- System Information:
Debian Release: 9.0
Architecture: amd64
 (x86_64)
Foreign Architectures: i386

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

Versions of packages python-apt depends on:
ii  dirmngr            2.1.18-6
ii  gnupg              2.1.18-6
ii  libapt-inst2.0     1.4.1
ii  libapt-pkg5.0      1.4.1
ii  libc6              2.24-10
ii  libgcc1            1:6.3.0-18
ii  libstdc++6         6.3.0-18
ii  python             2.7.13-2
ii  python-apt-common  1.4.0~beta3
pn  python:any         <none>

Versions of packages python-apt recommends:
ii  iso-codes    3.75-1
ii  lsb-release  9.20161125
ii  xz-utils     5.2.2-1.2+b1

Versions of packages python-apt suggests:
ii  apt             1.4.1
pn  python-apt-dbg  <none>
pn  python-apt-doc  <none>

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: python-apt
Source-Version: 1.6.0~rc3

We believe that the bug you reported is fixed in the latest version of
python-apt, 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 863193@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Julian Andres Klode <jak@debian.org> (supplier of updated python-apt 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 ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 13 Apr 2018 13:06:37 +0200
Source: python-apt
Binary: python-apt python-apt-doc python-apt-dbg python-apt-dev python-apt-common python3-apt python3-apt-dbg
Architecture: source
Version: 1.6.0~rc3
Distribution: unstable
Urgency: medium
Maintainer: APT Development Team <deity@lists.debian.org>
Changed-By: Julian Andres Klode <jak@debian.org>
Description:
 python-apt - Python interface to libapt-pkg
 python-apt-common - Python interface to libapt-pkg (locales)
 python-apt-dbg - Python interface to libapt-pkg (debug extension)
 python-apt-dev - Python interface to libapt-pkg (development files)
 python-apt-doc - Python interface to libapt-pkg (API documentation)
 python3-apt - Python 3 interface to libapt-pkg
 python3-apt-dbg - Python 3 interface to libapt-pkg (debug extension)
Closes: 863193 871585
Changes:
 python-apt (1.6.0~rc3) unstable; urgency=medium
 .
   * Revert change to make apt.Cache subclass of dict
   * Fix get_changelog() to correctly decode non-unicode changelogs
   * Try to work around memory corruption in PackageRecords.*_hash
   * apt/auth.py: Protect against race with gpg when removing tmpdir
     (Closes: #871585)
   * Document Architecture: all handling in Package.{fullname,architecture()}
     (Closes: #863193)
   * python/tag.cc: Fix invalid read in TagFileNext
   * Raise ValueError if objects passed to DepCache are from different cache
     (LP: #1737441)
   * DepCache: Check that candidate we are setting belongs to package
   * debian/gbp.conf: Default branch is master now
Checksums-Sha1:
 2c1b3bbd64599e91216a8ebcfdf62e69a38a5273 2510 python-apt_1.6.0~rc3.dsc
 14049d70d7fa9946236fb8a31993e17b620ac1b8 322048 python-apt_1.6.0~rc3.tar.xz
 b73d23235545be4f36b12e5a6a0134a9c4c59826 9603 python-apt_1.6.0~rc3_source.buildinfo
Checksums-Sha256:
 4c63ed9277f931ded7dbdf5aa21efda5459b645664e449d6b7c5f88824d07f3a 2510 python-apt_1.6.0~rc3.dsc
 4c48b013c7ec04e34812df126d9e2191cfbaa45440eeb14f78b280b205447c5c 322048 python-apt_1.6.0~rc3.tar.xz
 527c4d93cbd1e1e16bec91d0abbe637e1ca6ea9830f1b975537becc66421690f 9603 python-apt_1.6.0~rc3_source.buildinfo
Files:
 e56ec8bc02d8e8f0fb6a8209b44336fd 2510 python optional python-apt_1.6.0~rc3.dsc
 5c40aa4dd14303dcc72223aee3a38f97 322048 python optional python-apt_1.6.0~rc3.tar.xz
 31090715b3446a089b68b3420dda3929 9603 python optional python-apt_1.6.0~rc3_source.buildinfo

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

iQJDBAEBCgAtFiEEzeVhi4gF/W4gLOnC1zw55WWAs4YFAlrQj9EPHGpha0BkZWJp
YW4ub3JnAAoJENc8OeVlgLOGLX0P/1pb2SwnTKw+OqQ91jLICGYyBjqcn0gMHsZ+
X42m2a/2o9au11HbqOYymtr6WXUjg68Ti1U+LrcaO0Aw6TI8PnfRmt3MX1BDIXvs
EvC2K2eSXfDP76Yq22mM2+Vq3wIXb7awM4iO/EvEpEerp6P466OlLayurcvEjgLT
SRo+B+w79i1UIwRr83urKg5Dn6UjSOpEPVpScS8fhiSjM8WwxWYDsxnRVCey7wZD
mMvIG2NFbD6aveueta2yHYQdTsspfYWDSxjH1kkxKbYHDoXW3h5Tt2J5jkwmbcDm
lIYoLsddFkNzozCyM3d4RghlGAWrzcbO07/RraAXXzK5LYbWsF9xP9+UMPfFLnLO
DQL8NOBFHthckIIopwatq6B7jnNJEbe9Sfq9sHbvyF2jVQg/Q7EVWCeCWT3JxoTU
oUSVp1FjCt8tkZwi0EiXMsjztair8msoHXv51Zz9ycyIKPb/eEYRdkvRkf5w4/Z0
jE/N+y5jsU7Ix4rVAs7EWEc35G4j9+soF8leiPa+jge3A6zawloMPmA1QEIfgRZt
NyOmspECqmRCdcEmMPo1/Osj3dHxtFjTaCpSxN3J+0/UGmFX7DiHpFX+xSmYlaYk
WSd/2lHajT5hElI2vvjKFXwnjUfqRNLiOmK+4Lz7rE7Z0Uv4ziqGzBEo0+P1TL4M
i/obMmPd
=9fEE
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: