Bug#195805: python-apt: silently looses some dependencies
Package: python-apt
Version: 0.5.5
Severity: normal
Hallo,
recently I found out that the python-apt package sometimes
does not give all dependencies of a package.
Example: when I run the script
#!/usr/bin/python
import apt_pkg
apt_pkg.init()
cache = apt_pkg.GetCache()
package=cache["flac"]
print package
current=package.VersionList[0]
print current
dl=current.DependsList
print dl
depends=current.DependsList["Depends"]
print depends
I get the following output:
Reading Package Lists... Done
Building Dependency Tree... Done
<pkgCache::Package object: Name:'flac' Section: 'sound' ID:35 Flags:0x0>
<pkgCache::Version object: Pkg:'flac' Ver:'1.1.0-3' Section:'sound' Arch:'i386' Size:477840 ISize:4186112 Hash:32099 ID:450 Priority:4>
{'Depends': [[<pkgCache::Dependency object: Pkg:'libc6' Ver:'2.3.1-1' Comp:'>='>], [<pkgCache::Dependency object: Pkg:'libogg0' Ver:'1.0.0' Comp:'>='>]]}
[[<pkgCache::Dependency object: Pkg:'libc6' Ver:'2.3.1-1' Comp:'>='>], [<pkgCache::Dependency object: Pkg:'libogg0' Ver:'1.0.0' Comp:'>='>]]
This looks fine at the first glance. But then compare this
to the output of apt-cache:
automatix:/eimer# apt-cache show flac
Package: flac
Priority: optional
Section: sound
Installed-Size: 4088
Maintainer: Matt Zimmerman <mdz@debian.org>
Architecture: i386
Version: 1.1.0-3
Depends: libc6 (>= 2.3.1-1), libflac4, libogg0 (>= 1.0.0), liboggflac1
Filename: pool/main/f/flac/flac_1.1.0-3_i386.deb
Size: 477840
MD5sum: ea7b41b99b40fe0a722f44432ec9dc49
Description: Free Lossless Audio Codec - command line tools
[...]
The "libflac4" and "liboggflac1" dependencies are missing from
the output of the Python program.
I hope this helps,
Jochen
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux automatix.mathematik.uni-kl.de 2.4.20 #1 Mon Mar 31 11:20:37 CEST 2003 i686
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro
Versions of packages python-apt depends on:
ii apt [libapt-pkg-libc6.3-5-3.3 0.5.5.1 Advanced front-end for dpkg
ii apt-utils [libapt-inst-libc6. 0.5.5.1 APT utility programs
ii libc6 2.3.1-17 GNU C Library: Shared libraries an
ii python 2.2.3-1 An interactive high-level object-o
-- no debconf information
Reply to: