diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2009-01-08 16:34:20 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2009-01-08 16:34:20 +0100 |
| commit | fa9eee96831b3bb8964646e1b0415a059a498bd4 (patch) | |
| tree | b6dc1daa12822e30dbd9d75baa9f94846c6cd02b | |
| parent | ad2ec544545b2539d22e3dcdac945bd209542efa (diff) | |
| download | python-apt-fa9eee96831b3bb8964646e1b0415a059a498bd4.tar.gz | |
fix bug in candidateInstalledSize property
| -rw-r--r-- | apt/package.py | 4 | ||||
| -rw-r--r-- | debian/changelog | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/apt/package.py b/apt/package.py index 70ddbb1a..6af14b1f 100644 --- a/apt/package.py +++ b/apt/package.py @@ -384,6 +384,10 @@ class Package(object): def candidateInstalledSize(self, UseCandidate=True): """ The size of the candidate installed package """ ver = self._depcache.GetCandidateVer(self._pkg) + if ver: + return ver.Size + else: + return None candidateInstalledSize = property(candidateInstalledSize) def installedSize(self): diff --git a/debian/changelog b/debian/changelog index 160fe7c8..8b6780f5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -15,6 +15,7 @@ python-apt (0.7.9) UNRELEASED; urgency=low - better description parsing - new method "installedFiles()" - new method "getChangelog()" + - fix bug in candidateInstalledSize property * apt/gtk/widgets.py: - new gobject GOpProgress - new gobject GFetchProgress |
