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

Bug#150086: python-apt: Cache object method not working



Package: python-apt
Severity: normal
Version: 0.5.4.3

moshez@darjeeling:~$ /usr/bin/python2.1 bugfile
Reading Package Lists... Done
Building Dependency Tree... Done
Traceback (most recent call last):
  File "bugfile", line 4, in ?
    a.Packages()
TypeError: object of type 'pkgCache::PkgIterator' is not callable
moshez@darjeeling:~$ cat bugfile
import apt_pkg
apt_pkg.init()
a=apt_pkg.GetCache()
a.Packages()


Is there some other way to call .Packages()? It seems to be some internal
problem within .Packages(), where it is calling a wrong object.

Thanks in advance,
Moshe Zadka


-- 
To UNSUBSCRIBE, email to deity-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: