Your message dated Thu, 19 Dec 2013 03:12:12 +0100
with message-id <[email protected]>
and subject line Re: Bug#732581: dpkg-deb --show with --showformat="${Source}"
won't show the source if Source == Package
has caused the Debian Bug report #732581,
regarding dpkg-deb --show with --showformat="${Source}" won't show the source
if Source == Package
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
732581: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=732581
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dpkg
Version: 1.16.9
dpkg-deb doesn't show the Source for a package when the source name is
the same as the package name. dpkg itself makes an excellent example.
Expected behavior: `dpkg-deb --show
--showformat='${Package}\n${Source}\n' dpkg_1.16.12_amd64.deb` will
show dpkg twice, once for Package and once for Source.
Actual behavior: It shows dpkg once for the Package, but not for the Source.
#>apt-get download dpkg
Get:1 Downloading dpkg 1.16.12 [2,645 kB]
Fetched 2,645 kB in 1s (2,080 kB/s)
#>dpkg-deb --show --showformat='${Package}\n${Source}\n' dpkg_1.16.12_amd64.deb
dpkg
Expected behavior: `dpkg-deb --show
--showformat='${Package}\n${Source}\n' dpkg-dev_1.16.12_amd64.deb`
will show dpkg-dev once for Package and dpkg once for Source.
Actual behavior: matches expected behavior
#>apt-get download dpkg-dev
Get:1 Downloading dpkg-dev 1.16.12 [1,349 kB]
Fetched 1,349 kB in 0s (9,120 kB/s)
#>dpkg-deb --show --showformat='${Package}\n${Source}\n'
dpkg-dev_1.16.12_all.deb
dpkg-dev
dpkg
This was seen on a wheezy amd64 machine:
kernelmajversion => 3.2
kernelrelease => 3.2.0-4-amd64
kernelversion => 3.2.0
lsbdistcodename => wheezy
lsbdistdescription => Debian GNU/Linux 7.0 (wheezy)
lsbdistid => Debian
lsbdistrelease => 7.0
lsbmajdistrelease => 7
--- End Message ---
--- Begin Message ---
Hi!
On Wed, 2013-12-18 at 17:23:36 -0800, Matthaus Owens wrote:
> Package: dpkg
> Version: 1.16.9
>
> dpkg-deb doesn't show the Source for a package when the source name is
> the same as the package name. dpkg itself makes an excellent example.
This is expected, because those packages will not have such field.
With older dpkg versions, when querying the database (dpkg-query) or
a binary package (dpkg-deb), you'll need to fallback to use Package
if Source is missing. With newer dpkg (>= 1.16.2) you can use the new
virtual fields, which will give the value you want in all cases:
dpkg-deb --showformat='${source:Package}\n' --show dpkg-dev*.deb
You can find more information in the dpkg-query man page. I'm thus
closing this bug report, but feel free to reopen if there's something
missing from this.
Thanks,
Guillem
--- End Message ---