[Reportbug-commits] [reportbug] 02/27: Use apt instead of dpkg for availability information
Sandro Tosi
morph at moszumanska.debian.org
Mon May 29 20:14:05 UTC 2017
This is an automated email from the git hooks/post-receive script.
morph pushed a commit to branch master
in repository reportbug.
commit a2f99560f6cadecf9a4f62a259661aecf19b7e10
Author: Nis Martensen <nis.martensen at web.de>
Date: Fri May 26 19:21:30 2017 +0200
Use apt instead of dpkg for availability information
"dpkg --print-avail pkg-name" no longer shows the long package
description. Since we want it, so we must get it from somewhere else.
"apt-cache show pkg-name" provides it.
Also, man dpkg-query(1) says:
Users of APT-based frontends should use "apt-cache show package-name"
instead [of dpkg --print-avail package-name] as the available file is
only kept up-to-date when using dselect.
Nowadays APT has many more users than dselect, according to
popcon.debian.org.
---
reportbug/utils.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/reportbug/utils.py b/reportbug/utils.py
index 5ff3dbe..51c9d23 100644
--- a/reportbug/utils.py
+++ b/reportbug/utils.py
@@ -362,7 +362,7 @@ def get_package_status(package, avail=False):
packarg = pipes.quote(package)
if avail:
output = get_command_output(
- "COLUMNS=79 dpkg --print-avail %s 2>/dev/null" % packarg)
+ "apt-cache show %s 2>/dev/null" % packarg)
else:
output = get_command_output(
"COLUMNS=79 dpkg --status %s 2>/dev/null" % packarg)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reportbug/reportbug.git
More information about the Reportbug-commits
mailing list