Re: Bug#4974: Bug in dpkg Version: 22.214.171.124
'Dale Scheetz wrote:'
>On Mon, 4 Nov 1996, Chris Fearnley wrote:
>> 'Dale Scheetz wrote:'
>> >I have had the same problem with the -I option and dpkg. I hope you are
>> >not defending this behavior. Programs that do not return proper error
>> >codes should be considered broken in this regard. It would be nice if dpkg
>> >would return proper error conditions.
>> I just tested dpkg-126.96.36.199 and the -s option is the only one it fails
>> to return a non-zero value on failure. I tried -I, -c and -s.
>I just wrote this test program for the -I feature:
>and here is a sample of the results when this is run:
>root[08:21:23]~# ./try gnat
>dpkg-deb: failed to read archive `gnat': No such file or directory
>root[08:21:32]~# ./try /cdrom/rex/binary-i#386/devel/gnat*.deb
>It seems clear that dpkg returns a zero error code for both the failure
>and the success. This is not correct.
$ dpkg -I foo
dpkg-deb: failed to read archive `foo': No such file or directory
$ echo $?
I don't know why your perl script fails. I'm using dpkg-188.8.131.52.
Christopher J. Fearnley | Linux/Internet Consulting
firstname.lastname@example.org, email@example.com | UNIX SIG Leader at PACS
http://www.netaxs.com/~cjf | (Philadelphia Area Computer Society)
ftp://ftp.netaxs.com/people/cjf | Design Science Revolutionary
"Dare to be Naive" -- Bucky Fuller | Explorer in Universe
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com