The following commit has been merged in the master branch:
commit 8e9ad1f1143db9dbbda74d45a4510d91ab039164
Author: Guillem Jover <[email protected]>
Date:   Sun Mar 7 06:31:28 2010 +0100

    man: Document the exit codes for dpkg-query
    
    Closes: #571798

diff --git a/debian/changelog b/debian/changelog
index beaa5d2..5ea3d02 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -160,6 +160,7 @@ dpkg (1.15.6) UNRELEASED; urgency=low
     Closes: #430958
   * Document in the man page the effects of setting TMPDIR for dpkg and
     dpkg-deb, HOME for dselect and dpkg and PAGER for dpkg. Closes: #572836
+  * Document the exit codes for dpkg-query. Closes: #571798
 
   [ Modestas Vainius ]
   * Implement symbol patterns (Closes: #563752). From now on, it is possible to
diff --git a/man/dpkg-query.1 b/man/dpkg-query.1
index fbd6039..c07c613 100644
--- a/man/dpkg-query.1
+++ b/man/dpkg-query.1
@@ -1,4 +1,4 @@
-.TH dpkg\-query 1 "2009-09-06" "Debian Project" "dpkg suite"
+.TH dpkg\-query 1 "2010-03-07" "Debian Project" "dpkg suite"
 .SH NAME
 dpkg\-query \- a tool to query the dpkg database
 .
@@ -152,6 +152,13 @@ run:
   \fBdpkg\-query \-W \-f=\(aq${Package} ${Version}\\t${Maintainer}\\n\(aq 
dpkg\fP
 .fi
 .
+.SH "EXIT STATUS"
+.IP 0
+The requested query was successfully performed.
+.IP 1
+Problems were encountered while parsing the command line or performing the
+query, including no file or package being found (except for \-\-control\-path).
+.
 .SH ENVIRONMENT
 .TP
 \fBCOLUMNS\fP

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to