Package: dpkg Version: 1.17.1 Severity: wishlist In short, dpkg -L is not friendly to multiarch. Let's make dpkg -L as friendly as "dpkg -l" without causing problems to others.
Currently, if I run dpkg -L on a multiarch package, it returns very unfriendly response. For example: | $ dpkg -L libglib2.0-0 | dpkg-query: error: --listfiles needs a valid package name but 'libglib2.0-0' is not: ambiguous package name 'libglib2.0-0' with more than one installed instance | | Use --help for help about querying packages. Of course, adding :amd64 or :i386 gives expected result. This message should be changed at least to | $ dpkg -L libglib2.0-0 | 2 matching packages: libglib2.0-0:amd64 libglib2.0-0:i386 | Use package name with ":amd64" or ":i386". with ERROR exit code. If we wish to be more friendly, let's think about adding special grob enabled by ":" without arch. | $ dpkg -L libglib2.0-0: | :amd64 | normal dpkg -L libglib2.0-0:amd64 output | ... | :i386 | normal dpkg -L libglib2.0-0:i386 output | ... This ensures old script relying on old dpkg behavior will not misbehave. Then message can be | Use package name with ":", ":amd64" or ":i386". Osamu -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (100, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.11-rc4-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages dpkg depends on: ii libbz2-1.0 1.0.6-5 ii libc6 2.17-92 ii liblzma5 5.1.1alpha+20120614-2 ii libselinux1 2.1.13-2 ii tar 1.26+dfsg-8 ii zlib1g 1:1.2.8.dfsg-1 dpkg recommends no packages. Versions of packages dpkg suggests: ii apt 0.9.11.1 -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org