diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-03-08 17:02:04 +0100 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-03-08 17:02:04 +0100 |
| commit | 2f5a96fb610ef9cb10cb2042a86fea34d8a48904 (patch) | |
| tree | abfcfc8cedc62541203f4a11c15f457dd61b8174 /apt/cache.py | |
| parent | a81e4f2f93808aeaeac1887aba9b41c1ee1c9b11 (diff) | |
| download | python-apt-2f5a96fb610ef9cb10cb2042a86fea34d8a48904.tar.gz | |
* apt/: Adjust modules to use Package.{installed,candidate}.*
Diffstat (limited to 'apt/cache.py')
| -rw-r--r-- | apt/cache.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt/cache.py b/apt/cache.py index 0065d14c..0c729787 100644 --- a/apt/cache.py +++ b/apt/cache.py @@ -152,7 +152,7 @@ class Cache(object): """Return the packages not downloadable packages in reqreinst state.""" reqreinst = set() for pkg in self: - if (not pkg.candidateDownloadable and + if (not pkg.candidate.downloadable and (pkg._pkg.InstState == apt_pkg.InstStateReInstReq or pkg._pkg.InstState == apt_pkg.InstStateHoldReInstReq)): reqreinst.add(pkg.name) |
