diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-08-03 17:25:57 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-08-03 17:25:57 +0200 |
| commit | fd31f9b76508663d24c9a5684784cff18c235170 (patch) | |
| tree | 369a4d066ecf592b5bbeb513f91bb2cf470f7b36 | |
| parent | 7330eaf4b883bab1eb8d4b71784c2e60d56db82d (diff) | |
| download | python-apt-fd31f9b76508663d24c9a5684784cff18c235170.tar.gz | |
* apt/package.py:
- make shortDesc do the right thing too
| -rw-r--r-- | apt/package.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apt/package.py b/apt/package.py index e5de93f0..4e892082 100644 --- a/apt/package.py +++ b/apt/package.py @@ -151,6 +151,9 @@ class Package(object): """ Return the short description (one line summary) """ if not self._lookupRecord(): return "" + ver = self._depcache.GetCandidateVer(self._pkg) + desc_iter = ver.TranslatedDescription + self._records.Lookup(desc_iter.FileList.pop(0)) return self._records.ShortDesc summary = property(summary) |
