diff options
| author | Kiwinote <kiwinote@gmail.com> | 2010-06-25 19:07:16 +0100 |
|---|---|---|
| committer | Kiwinote <kiwinote@gmail.com> | 2010-06-25 19:07:16 +0100 |
| commit | 45a7ba935c89034c0ccc0c9ccc4f801a3d465bcf (patch) | |
| tree | 2e7d50e65ef61e273d988f5e4dccfecb6b04f50a | |
| parent | 0be0102d652ff86a2066088535bfe58cf2d713a4 (diff) | |
| download | python-apt-45a7ba935c89034c0ccc0c9ccc4f801a3d465bcf.tar.gz | |
Remove unneeded cache.downloadable()
| -rw-r--r-- | apt/cache.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/apt/cache.py b/apt/cache.py index f7a8bbaa..e50940ce 100644 --- a/apt/cache.py +++ b/apt/cache.py @@ -203,16 +203,6 @@ class Cache(object): self._depcache.upgrade(dist_upgrade) self.cache_post_change() - def downloadable(self, pkg, use_candidate=True): - """Check if the given package can be downloaded.""" - if use_candidate: - ver = self._depcache.get_candidate_ver(pkg._pkg) - else: - ver = pkg._pkg.current_ver - if ver == None: - return False - return ver.downloadable - @property def required_download(self): """Get the size of the packages that are required to download.""" |
