Package: dpkg
Version: 1.10.9
Tags: patch

The default format string for dpkg-query -W doesn't match the type of
format string that is actually supported by the underlying library code.
Symptom is that dpkg-query -W by default outputs a tab and newline,
but no real data, for each matching package.

--- main/query.c.orig   Thu Jan  2 01:02:17 2003
+++ main/query.c        Thu Jan  2 01:02:40 2003
@@ -43,7 +43,7 @@
 #include "filesdb.h"
 #include "main.h"
 
-static const char* showformat          = "${pkg:Package}\t${pkg:Version}\n";
+static const char* showformat          = "${Package}\t${Version}\n";
 
 
 void ensure_package_clientdata(struct pkginfo *pkg) {

-zefram


Reply via email to