diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-05-17 18:41:09 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-05-17 18:41:09 +0200 |
| commit | 52ae9a181314398e4dc4996d1409e99b9bdbbf7e (patch) | |
| tree | 0311a671e183751222eded229740fbdb7001d8b3 | |
| parent | 5042fb1f6160381c18a4add7076e8da175cba2d0 (diff) | |
| download | python-apt-52ae9a181314398e4dc4996d1409e99b9bdbbf7e.tar.gz | |
* apt/package.py:
- actually return values in {candiate,installed}Downloadable()
| -rw-r--r-- | apt/package.py | 4 | ||||
| -rw-r--r-- | debian/changelog | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/apt/package.py b/apt/package.py index 53f6c1f5..7297a1bb 100644 --- a/apt/package.py +++ b/apt/package.py @@ -105,12 +105,12 @@ class Package(object): return ver.Downloadable def candidateDownloadable(self): " returns if the canidate is downloadable " - self._downloadable(useCandidate=True) + return self._downloadable(useCandidate=True) candidateDownloadable = property(candidateDownloadable) def installedDownloadable(self): " returns if the installed version is downloadable " - self._downloadable(useCandidate=False) + return self._downloadable(useCandidate=False) installedDownloadable = property(installedDownloadable) def sourcePackageName(self): diff --git a/debian/changelog b/debian/changelog index 896e4a0d..5eac06d1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -14,6 +14,7 @@ python-apt (0.6.17) unstable; urgency=low * apt/package.py: - fix various pychecker warnings - check if looupRecords succeeded + - fix bug in the return statement of _downloadable() * apt/cache.py: * python/srcrecords.cc: - add "Restart" method |
