The following commit has been merged in the master branch:
commit bac27aba18dc8eff6124741f7554ccf75b09ceee
Author: Guillem Jover <[email protected]>
Date: Fri Jul 16 16:38:37 2010 +0200
dpkg-query: Do not incorrectly trim package summary on --list
When computing the longest package description, the code was using
always the first package passed to list1package. Which made it trim to
an incorrect size.
diff --git a/debian/changelog b/debian/changelog
index 844b2f7..3ec70ef 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -78,6 +78,8 @@ dpkg (1.15.8) UNRELEASED; urgency=low
renaming if it does not. Closes: #550252
As a side effect, this avoids useless errors when the destination
directory is not existent or writable. Closes: #581544
+ * Properly compute the longest package description from all to be displayed
+ on “dpkg-query --list”, so that it does not get incorrectly trimmed.
[ Updated programs translations ]
* Catalan (Guillem Jover).
diff --git a/src/query.c b/src/query.c
index 609e24c..a3112c6 100644
--- a/src/query.c
+++ b/src/query.c
@@ -91,7 +91,7 @@ list1package(struct pkginfo *pkg, bool *head, struct
pkg_array *array)
plen = strlen(array->pkgs[i]->name);
vlen = strlen(versiondescribe(&array->pkgs[i]->installed.version,
vdew_nonambig));
- pkg_summary(pkg, &dlen);
+ pkg_summary(array->pkgs[i], &dlen);
if (plen > nw) nw = plen;
if (vlen > vw) vw = vlen;
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]