diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2008-09-18 14:57:22 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2008-09-18 14:57:22 +0200 |
| commit | e7811c1935bb36b35bfe0ba30056ac4209a27377 (patch) | |
| tree | 5bd551480048e60d2ac042d3d2e20c2eab7e01f3 | |
| parent | 17e8b974718928e8e5a1b80ac2c45e6f7ff98441 (diff) | |
| download | python-apt-e7811c1935bb36b35bfe0ba30056ac4209a27377.tar.gz | |
* apt/package.py:
- do not return None in sourcePackageName (LP: #123062)
| -rw-r--r-- | apt/package.py | 3 | ||||
| -rw-r--r-- | debian/changelog | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/apt/package.py b/apt/package.py index 096b1bd1..c1c2b1e1 100644 --- a/apt/package.py +++ b/apt/package.py @@ -186,7 +186,8 @@ class Package(object): def sourcePackageName(self): """ Return the source package name as string """ if not self._lookupRecord(): - return None + if not self._lookupRecord(UseCandidate=False): + return self._pkg.Name src = self._records.SourcePkg if src != "": return src diff --git a/debian/changelog b/debian/changelog index cc4c2aef..b834036a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,7 @@ python-apt (0.7.7.1ubuntu4) intrepid; urgency=low + * apt/package.py: + - do not return None in sourcePackageName (LP: #123062) * python/progress.cc: - when pulse() does not return a boolean assume "true" (thanks to Martin Pitt for telling me about the problem) |
