Bug#825915: [dpkg] --print-avail broken

2016-05-31 Thread Guillem Jover
Hi!

On Tue, 2016-05-31 at 12:26:02 +0200, Bastian Venthur wrote:
> Package: dpkg
> Version: 1.18.7
> Severity: important

> Something is wrong with --print-avail. It used to give usefule package
> information for installed packages, but now it seems to be broken:

It has never printed information about installed packages, but about
available ones (from repositories or external sources). What dpkg used
to do was to update the available information whenever it installed
a package, but that was in principle wrong, as dpkg didn't record the
path to them and as such it had no way to know if those package might
or might not be available. This is the case since dpkg 1.17.11.

> $LANG=C dpkg --print-avail reportbug
> dpkg-query: package 'reportbug' is not available
> Use dpkg --info (= dpkg-deb --info) to examine archive files,
> and dpkg --contents (= dpkg-deb --contents) to list their contents.
> 
> reportbug *is* installed on my system. However,

Sure, but dpkg is complaining that it has no information about the
available packages (i.e. those from the repository).

> $ LANG=C dpkg --print-avail dpkg

> works fine and shows the expected output. I'm using severity important,
> as reportbug-ng needs --print-avail to get the package dependency
> information, see below.

Are you sure it's printing information about the currently installed
package and not an old version? Please compare with the output from
«dpkg-query --status dpkg».

In any case, if you need information about the currently installed
package the correct interface is «dpkg-query --status» anyway. So I'm
planning to close this report if there's no additional information
indicating there's an actual bug here. :)

Thanks,
Guillem



Bug#825915: [dpkg] --print-avail broken

2016-05-31 Thread Bastian Venthur
Package: dpkg
Version: 1.18.7
Severity: important

--- Please enter the report below this line. ---

Something is wrong with --print-avail. It used to give usefule package
information for installed packages, but now it seems to be broken:

$LANG=C dpkg --print-avail reportbug
dpkg-query: package 'reportbug' is not available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.

reportbug *is* installed on my system. However,

$ LANG=C dpkg --print-avail dpkg


works fine and shows the expected output. I'm using severity important,
as reportbug-ng needs --print-avail to get the package dependency
information, see below.


Cheers,

Bastian



--- System information. ---
Architecture: amd64
Kernel:   Linux 4.5.0-2-amd64

Debian Release: stretch/sid
  500 unstablehttpredir.debian.org   500 stable
dl.google.com 1 experimentalhttpredir.debian.org

--- Package information. ---
Package's Depends field is empty.

Package's Recommends field is empty.

Suggests  (Version) | Installed
===-+-===
apt | 1.2.12


-- 
Dr. Bastian Venthur  http://venthur.de
Debian Developer venthur at debian org