Browse Source

Rename “show:” virtual fields to binary:Summary and db:Status-Abbrev

Use more meaningful namespaces for the fields, matching the existing
convention used in substvars.
Guillem Jover 14 years ago
parent
commit
37958ced1f
3 changed files with 5 additions and 5 deletions
  1. 1 1
      debian/changelog
  2. 2 2
      lib/dpkg/pkg-format.c
  3. 2 2
      man/dpkg-query.1

+ 1 - 1
debian/changelog

@@ -43,7 +43,7 @@ dpkg (1.16.2) UNRELEASED; urgency=low
     instead of dh_install, the former does not abort on empty glob expansion.
   * Do not use absolute paths for programs in perl and shell code.
   * Add missing ‘*’ in asprintf() and vasprintf() compat declarations.
-  * Add support for virtual output fields show:Summary and show:Status-Abbrev.
+  * Add support for virtual output binary:Summary and db:Status-Abbrev fields.
     Closes: #192619, #427945
 
   [ Raphaël Hertzog ]

+ 2 - 2
lib/dpkg/pkg-format.c

@@ -229,8 +229,8 @@ virt_summary(struct varbuf *vb,
 }
 
 const struct fieldinfo virtinfos[] = {
-	{ "show:Summary",       NULL, virt_summary },
-	{ "show:Status-Abbrev", NULL, virt_status_abbrev },
+	{ "binary:Summary", NULL, virt_summary },
+	{ "db:Status-Abbrev", NULL, virt_status_abbrev },
 	{ NULL },
 };
 

+ 2 - 2
man/dpkg-query.1

@@ -186,8 +186,8 @@ values from other fields (note that these do not use valid names for
 fields in control files):
 
 .nf
-    \fBshow:Summary\fP
-    \fBshow:Status\-Abbrev\fP
+    \fBbinary:Summary\fP
+    \fBdb:Status\-Abbrev\fP
 .fi
 
 The default format string is \(lq\fB${Package}\et${Version}\en\fP\(rq.