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

Bug#750189: marked as done (python-apt: compare_to_version_in_cache() not aware of multiarch)



Your message dated Tue, 23 Jun 2015 19:32:08 +0000
with message-id <E1Z7TvU-0006b3-Tk@franck.debian.org>
and subject line Bug#750189: fixed in python-apt 0.9.3.12
has caused the Debian Bug report #750189,
regarding python-apt: compare_to_version_in_cache() not aware of multiarch
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.)


-- 
750189: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=750189
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: python-apt
Version: 0.9.3.6
Severity: normal

Dear Maintainer,

python-apt fails to find installed packages of different architecture
when reading metadata from a deb file. For example, I've installed
libopenjpeg5:i386 on an amd64 system:


```
$ apt-cache policy libopenjpeg5:i386
libopenjpeg5:i386:
  Installed: 1.5.2-2
  Candidate: 1.5.2-2
  Version table:
 *** 1.5.2-2 0
        500 http://ftp.cn.debian.org/debian/ unstable/main i386 Packages
        100 /var/lib/dpkg/status

limbo@Skypiea in ~/.vim/bundle/YouCompleteMe [master]
$ apt-cache policy libopenjpeg5
libopenjpeg5:
  Installed: (none)
  Candidate: 1.5.2-2
  Version table:
     1.5.2-2 0
        500 http://ftp.cn.debian.org/debian/ unstable/main amd64 Packages
```

But when I use python-apt to read the deb file, it reports that this
package is NOT installed on my system:

```python
from apt.debfile import DebPackage
pkg = DebPackage('/var/cache/apt/archives/libopenjpeg5_1.5.2-2_i386.deb')
print pkg.compare_to_version_in_cache() == DebPackage.VERSION_SAME # => False
print pkg.compare_to_version_in_cache() == DebPackage.VERSION_NONE # => True
```

I think the problem resides in function `compare_to_version_in_cache()`
in `debfile.py`, which does not check package names appended with
architecture name suffix.

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

Kernel: Linux 3.12.14-debian (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-apt depends on:
ii  libapt-inst1.5     1.0.3
ii  libapt-pkg4.12     1.0.3
ii  libc6              2.18-7
ii  libgcc1            1:4.9.0-5
ii  libstdc++6         4.9.0-5
ii  python             2.7.6-2
ii  python-apt-common  0.9.3.6

Versions of packages python-apt recommends:
ii  iso-codes    3.53-1
ii  lsb-release  4.1+Debian12
ii  xz-utils     5.1.1alpha+20120614-2

Versions of packages python-apt suggests:
pn  python-apt-dbg  <none>
pn  python-apt-doc  <none>
ii  python-gtk2     2.24.0-3+b1
ii  python-vte      1:0.28.2-5

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: python-apt
Source-Version: 0.9.3.12

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 750189@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: Tue, 16 Jun 2015 11:35:11 +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 amd64 all
Version: 0.9.3.12
Distribution: jessie
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: 745487 750189 751770
Changes:
 python-apt (0.9.3.12) jessie; urgency=medium
 .
   [ Julian Andres Klode ]
   * apt/cache.py: Work around a cyclic reference from Cache to its methods
     (Closes: #745487)
   * python/arfile.cc: LFS: Use long long instead of long for file sizes
   * python/arfile.cc: Do not allow files larger than SIZE_MAX to be mapped
   * python/tarfile.cc: LFS: Handle too large file
   * apt.debfile: Fix splitting of multi-lines Binary fields in dsc files
     (Closes: #751770)
   * apt/debfile.py: Arch-qualify in compare_to_version_in_cache()
     (Closes: #750189)
 .
   [ Michael Vogt ]
   * Fix apt.Package.installed_files for multi-arch packages (LP: #1313699)
Checksums-Sha1:
 23b012f8286b24ad10ef43561f950ba1a5f8eff9 2234 python-apt_0.9.3.12.dsc
 4bc6693dc97b89c610bb1268a3fefc30e9eda2fb 309896 python-apt_0.9.3.12.tar.xz
 b4df7d0073ad42e97f22d8c47d3be79f64cef5fa 170568 python-apt_0.9.3.12_amd64.deb
 aca170f3425e1242dd82787db2409a834e02b1cf 152336 python-apt-doc_0.9.3.12_all.deb
 5981ee9dd8852a48008ec735e5dc369f847f6597 1570586 python-apt-dbg_0.9.3.12_amd64.deb
 ca5a86c1b89984b29507be9edfc39ce0cd59c0d4 7444 python-apt-dev_0.9.3.12_all.deb
 54181af434918d49c3825e00352fccead5f52ec9 89888 python-apt-common_0.9.3.12_all.deb
 afc630ac10d99906663b1f7666f82a70c8c4ffef 168648 python3-apt_0.9.3.12_amd64.deb
 7d930a5829b0f462d8dbc82fa782005241c17666 1584930 python3-apt-dbg_0.9.3.12_amd64.deb
Checksums-Sha256:
 6bdbdd663556269cd5b8a90f0e2155456b0d2b50cf2baf0aac3606dc5a053e82 2234 python-apt_0.9.3.12.dsc
 0a889130fd643be9cc3b4d972819bcb2ba9cc70b923077d4210c297aba07843b 309896 python-apt_0.9.3.12.tar.xz
 7fb490a0514d3251dd80b03e4e118ddc512180a5831c4074c75052327bef5467 170568 python-apt_0.9.3.12_amd64.deb
 040c1f97549f107d5543fa2b9053570483f2c1af8d054dc101199fd3a615f7c8 152336 python-apt-doc_0.9.3.12_all.deb
 98ada68ee23ef604e38c095640fa20652d07dae05e35d154b9d80b158b4d4487 1570586 python-apt-dbg_0.9.3.12_amd64.deb
 27e083d0ae16436d5cb411f4441e42601251f02cc508e2bd51859f2d1d688d4c 7444 python-apt-dev_0.9.3.12_all.deb
 ae1c9e04a00f73f087c17370d563e53179d91824faaf2367374591ff7196e6be 89888 python-apt-common_0.9.3.12_all.deb
 18a49d0bf33133d2ccbf644a6f6b0bb92ac301053675d1bf4a76d8cef2ab8b80 168648 python3-apt_0.9.3.12_amd64.deb
 73bc3ead4e8020c34bb73f4a1899e66c147e383dda46f353385a708cb8d4c81f 1584930 python3-apt-dbg_0.9.3.12_amd64.deb
Files:
 99af948d30a167c79b1c4c6fcdb569bc 2234 python standard python-apt_0.9.3.12.dsc
 0b5d87d5fc854f427dec4ee0977bf677 309896 python standard python-apt_0.9.3.12.tar.xz
 73d902f1e7b46423a5ebfeeafe5c6dea 170568 python standard python-apt_0.9.3.12_amd64.deb
 303f9e9b4a9d330a8f93ccde0e4bcbc8 152336 doc optional python-apt-doc_0.9.3.12_all.deb
 54ad2d4121d5245a2ed8f8cc997c838d 1570586 debug extra python-apt-dbg_0.9.3.12_amd64.deb
 70f8b7f74a264833acabd948d3642c8f 7444 python optional python-apt-dev_0.9.3.12_all.deb
 e9270a43f98a0fd01605b19fc0ea81ac 89888 python optional python-apt-common_0.9.3.12_all.deb
 ccebfc569cf27cd164cbd1325566163a 168648 python optional python3-apt_0.9.3.12_amd64.deb
 bd6c1be58ad1da616bada1339ec4a523 1584930 debug extra python3-apt-dbg_0.9.3.12_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCgAGBQJVhcoMAAoJENc8OeVlgLOGc7IP/1Cw33oZGv2VXGwCWjGMcbjf
Oc4Xs9CvMxOYDvPyH2h74LxDpoiv0KryUBnC4ppmDWiLU45nR4KG8PySg0q+KeFD
S/jrU3ICdW/FcdK+8a9ZbS3rPUwC0/N62iH3Hr9jUeHQHGbmKDphjkuTiF1jAoQg
YVRzg3L5WwyATGqvTlrgpgCpThbYvm8Ww/2nyTeuu6AHXsqrjF+fuP+pH9N19f5u
tyIwQQkSKJkJ37VgZcpJe4g01vAtPfDb8QenkdMHRkV82atS3PgHxeuWMiT5gzKj
Vdvs7szkVU7D7o8fLAwFqssTRoYTcfKmKqBdHITuJICwGFAKRcE1nDQORQDGNCfu
vcRb2w7QkIVX73bdB+/OLon5+lxde7G/mfY9L8OAAW1IPlm7rcH2qShjxXwatStw
rWf8PlmFt5p6D7WoPdi556fuKsisM4GZhVqrf08qpNNnnzm+4CIa8uFIZSIjocDi
nDcg6q8yuHB9VD/xejvQ5cSnBFZOE/B16OJLcb+XYIRLIwC95N6KrlgNUEoHC6yb
35VLXY/OAi9khpr908tbTXBd0j1bKa4vThTbVUkzGFDH6ocB7Xh8ApBwNcGR6B1r
aybQ2xHF6VF9CVc5OISleThCtSN7sqG1GfnF2H9RbLZj8JMBRctFm2KXkuGUFFhx
FDBFtRBGfzIeeYCwdEaa
=k+Ot
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: