Bug#641602: -L and -c/--content should work on multiple .deb files

2011-09-15 Thread Guillem Jover
retitle 641602 dpkg-deb: -c/--contents does not accept multiple .deb files
tag 641602 wontfix
thanks

On Wed, 2011-09-14 at 17:35:44 +0200, Steffen Moeller wrote:
 Package: dpkg
 Version: 1.16.0.3
 Severity: wishlist
 
 $ dpkg -c ../build-area/*.deb
 dpkg-deb: error: --contents takes exactly one argument
 
 I just do not see why. Would you accept a patch for that?

For the same reason tar or zip only accept one archive for all
operations. In any case I don't see how something like:

  $ ls *.deb | xargs -n1 dpkg-deb -c

or

  $ for f in *.deb; do dpkg-deb -c $f; done

is that much complicated as to require “bloating” dpkg-deb for it, and
as such I'm marking this as wontfix for now, will probably close in a
bit.

regards,
guillem



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#641602: -L and -c/--content should work on multiple .deb files

2011-09-14 Thread Steffen Moeller
Package: dpkg
Version: 1.16.0.3
Severity: wishlist

$ dpkg -c ../build-area/*.deb
dpkg-deb: error: --contents takes exactly one argument

I just do not see why. Would you accept a patch for that?

Steffen



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#641602: -L and -c/--content should work on multiple .deb files

2011-09-14 Thread Jonathan Nieder
Hi Steffen,

Steffen Moeller wrote:

 [Subject: -L and -c/--content should work on multiple .deb files]

Actually, dpkg -L already works with multiple package arguments. ;-)

 $ dpkg -c ../build-area/*.deb
 dpkg-deb: error: --contents takes exactly one argument

 I just do not see why. Would you accept a patch for that?

I can't make any promises (it depends on the nature of the patch),
but it sounds like a good idea.

The only gotcha I can think of to watch out for is combinations of -c
with other options, as in dpkg-deb -c foo.deb --debug.  What is
already implemented for other dpkg command options might give a hint
for the expected convention; I haven't checked.

Thanks!
Jonathan



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org