浏览代码

dpkg(1): Clarify that the «dpkg -l» example only lists installed packages

Also add a reference to «dpkg-query --load-avail» as a way to list
available packages.

Closes: #673305
Guillem Jover 14 年之前
父节点
当前提交
fbe07e934f
共有 2 个文件被更改,包括 7 次插入1 次删除
  1. 3 0
      debian/changelog
  2. 4 1
      man/dpkg.1

+ 3 - 0
debian/changelog

@@ -39,6 +39,9 @@ dpkg (1.16.4) UNRELEASED; urgency=low
     Thanks to Roger Leigh <rleigh@debian.org>.
     Thanks to Roger Leigh <rleigh@debian.org>.
   * Add support for “none” as a valid dpkg-deb compression strategy value.
   * Add support for “none” as a valid dpkg-deb compression strategy value.
     Closes: #674711
     Closes: #674711
+  * Clarify in dpkg(1) that the «dpkg -l» example only lists installed
+    packages, and that to list available packages «dpkg-query --load-avail»
+    has to be used instead. Closes: #673305
 
 
   [ Updated man page translations ]
   [ Updated man page translations ]
   * German (Helge Kreutzmann).
   * German (Helge Kreutzmann).

+ 4 - 1
man/dpkg.1

@@ -757,7 +757,10 @@ Defined by \fBdpkg\fP on the maintainer script environment to the
 name of the script running (preinst, postinst, prerm, postrm).
 name of the script running (preinst, postinst, prerm, postrm).
 .
 .
 .SH EXAMPLES
 .SH EXAMPLES
-To list packages related to the editor \fBvi\fP(1):
+To list installed packages related to the editor \fBvi\fP(1) (note that
+\fBdpkg\-query\fP does not load the available file anymore by default, and
+the \fBdpkg\-query\fP \fB\-\-load\-avail\fP option should be used instead
+for that):
 .br
 .br
 \fB     dpkg \-l \(aq*vi*\(aq\fP
 \fB     dpkg \-l \(aq*vi*\(aq\fP
 .br
 .br