From: Raphael Hertzog Date: Fri, 27 Jun 2008 17:08:15 +0000 (+0200) Subject: dpkg-query(1): document the origin of fields available for --showformat X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd547fc2a36da7422d9359da3db5e9e9374b5471;p=dpkg dpkg-query(1): document the origin of fields available for --showformat --- diff --git a/debian/changelog b/debian/changelog index be8de9fa..3cd700b3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -54,6 +54,8 @@ dpkg (1.15.0) UNRELEASED; urgency=low * Add new option --listpackage to dpkg-divert. Thanks to Timothy G Abbott for the patch. Closes: #485012 * Add new option --require-valid-signature to dpkg-source. Closes: #390282 + * In dpkg-query(1) document the origin of the various fields and warn that + they are not always available. Closes: #488293 [ Pierre Habouzit ] * Add a --query option to update-alternatives. Closes: #336091, #441904 diff --git a/man/ChangeLog b/man/ChangeLog index af2fce86..4bd26a0d 100644 --- a/man/ChangeLog +++ b/man/ChangeLog @@ -1,3 +1,8 @@ +2008-06-27 Raphael Hertzog + + * dpkg-query.1: Document the origin of the various fields + and warn that they are not always available. + 2008-06-22 Raphael Hertzog * dpkg-buildpackage.1: Document -A option. diff --git a/man/dpkg-query.1 b/man/dpkg-query.1 index c0561091..f01e924b 100644 --- a/man/dpkg-query.1 +++ b/man/dpkg-query.1 @@ -96,24 +96,26 @@ Package information can be included by inserting variable references to package fields using the syntax \(lq\fB${\fP\fIfield\fR[\fB;\fP\fIwidth\fR]\fB}\fP\(rq. Fields are printed right-aligned unless the width is negative in which case left -alignment will be used. The following \fIfield\fRs are recognised: +alignment will be used. The following \fIfield\fRs are recognised but +they are not necessarily available in the status file (only internal +fields or fields stored in the binary package end up in it): .nf \fBArchitecture\fP \fBBugs\fP - \fBConffiles\fP - \fBConfig\-Version\fP + \fBConffiles\fP (internal) + \fBConfig\-Version\fP (internal) \fBConflicts\fP \fBBreaks\fP \fBDepends\fP \fBDescription\fP \fBEnhances\fP \fBEssential\fP - \fBFilename\fP + \fBFilename\fP (internal, dselect related) \fBHomepage\fP \fBInstalled\-Size\fP - \fBMD5sum\fP - \fBMSDOS\-Filename\fP + \fBMD5sum\fP (internal, dselect related) + \fBMSDOS\-Filename\fP (internal, dselect related) \fBMaintainer\fP \fBOrigin\fP \fBPackage\fP @@ -122,13 +124,15 @@ alignment will be used. The following \fIfield\fRs are recognised: \fBProvides\fP \fBRecommends\fP \fBReplaces\fP - \fBRevision\fP + \fBRevision\fP (obsolete) \fBSection\fP - \fBSize\fP + \fBSize\fP (internal, dselect related) \fBSource\fP - \fBStatus\fP + \fBStatus\fP (internal) \fBSuggests\fP - \fBTag\fP + \fBTag\fP (usually not in the .deb but in APT's Packages files) + \fBTriggers-Awaited\fP (internal) + \fBTriggers-Pending\fP (internal) \fBVersion\fP .fi