+2008-07-04 Raphael Hertzog <hertzog@debian.org>
+ Bruce Sass <bmsass@shaw.ca>
+
+ * 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.
+
2008-07-02 Guillem Jover <guillem@debian.org>
* lib/fields.c (convert_string): Remove unneeded variable assignments.
Branko Lankester
Brian M. Carlson <sandals@crustytoothpaste.ath.cx>
Bruce Perens <bruce@pixar.com>
+Bruce Sass <bmsass@shaw.ca>
Carl Streeter <streeter@cae.wisc.edu>
Carlos Laviola <claviola@brfree.com.br>
Carlos Z.F. Liu <carlosliu@users.sourceforge.net>
they are not always available. Closes: #488293
* Improve error message in install-info when the file doesn't exist.
Thanks to Thomas Hood <jdthood@yahoo.co.uk>. Closes: #107098
+ * Use description of installed package as fallback in dselect.
+ Based on a patch from Bruce Sass <bmsass@shaw.ca>. Closes: #21659
[ Pierre Habouzit ]
* Add a --query option to update-alternatives. Closes: #336091, #441904
if (table[cursorline]->pkg->name) {
const char *m= table[cursorline]->pkg->available.description;
+ if (!m || !*m)
+ m = table[cursorline]->pkg->installed.description;
if (!m || !*m)
m = _("No description available.");
const char *p= strchr(m,'\n');
}
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 {