diff options
author | Raphael Hertzog <hertzog@debian.org> | 2008-07-04 14:41:53 +0200 |
---|---|---|
committer | Raphael Hertzog <hertzog@debian.org> | 2008-07-04 15:22:58 +0200 |
commit | 7a55e2b0ff22aee1f6e972d1174a1845b40fc935 (patch) | |
tree | 8c38b78b1c9db626c5ced5951be70d4ff7befc54 /dselect/pkgtop.cc | |
parent | 2ebc4938a254b3c194644688525ae7dceffae202 (diff) | |
download | dpkg-7a55e2b0ff22aee1f6e972d1174a1845b40fc935.tar.gz |
Use description of installed package if it's not available anymore
* dselect/pkginfo.cc (packagelist::itd_description), dselect/pkgtop.cc
(packagelist::redraw1itemsel): Use description of installed
package as a fallback if the package is not more listed in the
available list.
Based on a patch by Bruce Sass <bmsass@shaw.ca>.
Diffstat (limited to 'dselect/pkgtop.cc')
-rw-r--r-- | dselect/pkgtop.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dselect/pkgtop.cc b/dselect/pkgtop.cc index 2a7c01de3..3022c50b2 100644 --- a/dselect/pkgtop.cc +++ b/dselect/pkgtop.cc @@ -221,7 +221,8 @@ void packagelist::redraw1itemsel(int index, int selected) { } i= description_width; - p= info->description ? info->description : ""; + p= info->description ? info->description : + pkg->installed.description ? pkg->installed.description : ""; while (i>0 && *p && *p != '\n') { waddnstr(listpad,p,1); i--; p++; } } else { |