diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-07-02 15:34:30 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-07-02 15:34:30 +0200 |
| commit | 850c486cc0c96f2a36a2b405354163fe41d356e7 (patch) | |
| tree | d1eeef720c204cb862ba876249a866fbc6af2977 | |
| parent | 7dd530ec0cfd871d4b2b21c88f17aebca29b3dcd (diff) | |
| download | python-apt-850c486cc0c96f2a36a2b405354163fe41d356e7.tar.gz | |
apt/debfile.py: fix bug in compare_to_version_in_cache with use_installed=True
| -rw-r--r-- | apt/debfile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt/debfile.py b/apt/debfile.py index 528cd311..3b3a8d97 100644 --- a/apt/debfile.py +++ b/apt/debfile.py @@ -355,7 +355,7 @@ class DebPackage(object): if pkgname in self._cache: if use_installed and self._cache[pkgname].installed: cachever = self._cache[pkgname].installed.version - elif self._cache[pkgname].candidate: + elif not use_installed and self._cache[pkgname].candidate: cachever = self._cache[pkgname].candidate.version else: return self.VERSION_NONE |
