diff options
| -rw-r--r-- | apt/cache.py | 6 | ||||
| -rw-r--r-- | apt/package.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/apt/cache.py b/apt/cache.py index 2b3e8ace..1988e26b 100644 --- a/apt/cache.py +++ b/apt/cache.py @@ -63,8 +63,8 @@ class MarkedChangesFilter(Filter): return False class FilteredCache(Cache): - def __init__(self): - Cache.__init__(self) + def __init__(self, progress=None): + Cache.__init__(self, progress) self._filtered = {} def __len__(self): return len(self._filtered) @@ -90,7 +90,7 @@ class FilteredCache(Cache): if __name__ == "__main__": print "Cache self test" apt_pkg.init() - c = Cache() + c = Cache(OpTextProgress()) print c.has_key("aptitude") p = c["aptitude"] print p.Name() diff --git a/apt/package.py b/apt/package.py index 4d1db55d..014b720f 100644 --- a/apt/package.py +++ b/apt/package.py @@ -108,7 +108,7 @@ class Package(object): def IsInstalled(self): return (self._pkg.CurrentVer != None) def IsUpgradable(self): - return IsInstalled() and self._depcache.IsUpgradable(self._pkg) + return self.IsInstalled() and self._depcache.IsUpgradable(self._pkg) # depcache action def MarkKeep(self): |
