Bug#565364: python-apt: Auto flag attribute in apt_get.Package is always 0

2010-01-20 Thread Michael Vogt
Hi, thanks for your bugreort. To make it work, please use: import apt_pkg apt_pkg.InitConfig() apt_pkg.InitSystem() cache=apt_pkg.GetCache() depcache=apt_pkg.GetDepCache(cache) for pkg in cache.Packages: if pkg.CurrentVer and depcache.IsAutoInstalled(pkg): print pkg.Name Or the high

Bug#565364: python-apt: Auto flag attribute in apt_get.Package is always 0

2010-01-14 Thread Gene Cash
Package: python-apt Version: 0.7.13.3 Severity: normal Run this code: import apt_pkg apt_pkg.InitConfig() apt_pkg.InitSystem() cache=apt_pkg.GetCache() for pkg in cache.Packages: if pkg.CurrentVer and pkg.Auto != 0: print pkg.Name This prints only: Reading package lists... Done Bui