Buggy code is: cache = apt.Cache(GtkOpProgress()) for pkgname in to_add: if not cache[pkgname].isInstalled: result = False
For some reason in this case pkgname is not in the cache
Buggy code is: GtkOpProgress( )) .isInstalled:
result = False
cache = apt.Cache(
for pkgname in to_add:
if not cache[pkgname]
For some reason in this case pkgname is not in the cache