diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2005-06-01 19:50:19 +0000 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2005-06-01 19:50:19 +0000 |
| commit | d2a55a7ccf141cd9706f62f87c74d10551f6a799 (patch) | |
| tree | 4db3a181428fba50d89cb22e2ce30ebbd6a1b5ce | |
| parent | a0596d73510acae4749480c209e0f318852fc83f (diff) | |
| download | python-apt-d2a55a7ccf141cd9706f62f87c74d10551f6a799.tar.gz | |
* apt/cache.py: small fixes
| -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): |
