Bug#60730: bad exit code on apt-get
Package: apt
Version: 0.1.9
Problem ?
-------
There is a bad interpretation in the exist code of dpkg-deb with
apt-get..
my configuration:
HP Lhpro Bi pentium PRO
[root@syspeo:~] dpkg -l |grep dpkg
ii apt 0.1.9 Front-End for dpkg
ii dpkg 1.4.0.34 Package maintenance system for Debian
Linux
ii dpkg-dev 1.4.0.34 Package building tools for Debian
Linux
ii dpkg-mountable 0.7 Enhanced access method for dselect
[root@syspeo:~] uname -a
Linux syspeo 2.2.13-rtl2.0 #1 SMP Thu Dec 30 16:12:47 CET 1999 i686
unknown
[root@syspeo:~] dpkg -l |grep libc
ii libc5 5.4.46-3 The Linux C library version 5
(run-time libr
ii libc6 2.0.7.19981211 GNU C Library: shared libraries
ii libc6-dev 2.0.7.19981211 GNU C Library: Development libraries
and hea
ii libcompfaceg1 1989.11.11-16 Compress/decompress images for
mailheaders,
ii libg++272 2.7.2.8-0.1 The GNU C++ libraries (libc6
version).
ii libgpmg1 1.14-3 General Purpose Mouse Library [libc6]
ii libtiff3g 3.4beta037-5.1 tiff runtime library [libc6]
ii tcl76 7.6p2-7 The Tool Command Language (TCL) v7.6
- libc5
ii tk42 4.2p2-7 The Tk toolkit for TCL and X11 v4.2 -
libc5
ii xlib6 3.3.6-1.99.sli shared libraries required by libc5 X
clients
ii xpm4.7 3.4j-0.6 X Pixmap libraries (for libc5) -
runtime
ii xpm4g 3.4j-0.6 X Pixmap libraries (for libc6) -
runtime
I am using apt-get in order to manage my local LAN, and i construct a
directory
with different packages i386.deb files.
the following command on my specific directory give.....
---------------
[root@syspeo:~] dpkg-scanpackages
/libre_2/package_debian/dists/stable/main /tmp/. ../..
dpkg-deb (subprocess): unexpected end of file in member data in
/libre_2/package_debian/dists/stable/main/nethack_3.2.3-3_i386.deb
gzip: stdin: unexpected end of file
dpkg-deb: subprocess gzip -dc returned error exit status 1
Couldn't call dpkg-deb on
/libre_2/package_debian/dists/stable/main/nethack_3.2.3-3_i386.deb:
---------------
the problem is that the exit code is good ( $? = 0 ), and of course my
script wich used the
dpkg-scanpackages can not stop ...
if i use the dpkg-deb with my test file, i have the following
result...
---------------
[root@syspeo:~] dpkg-deb -I
/libre_2/package_debian/dists/stable/main/nethack_3.2.3-3_i386.deb;echo
$?
new debian package, version 2.0.
size 2920 bytes: control archive= 4412 bytes.
dpkg-deb (subprocess): unexpected end of file in member data in
/libre_2/package_debian/dists/stable/main/nethack_3.2.3-3_i386.deb
gzip: stdin: unexpected end of file
dpkg-deb: subprocess gzip -dc returned error exit status 1
2
---------------
and this is normal because my package is broken.
Conclusion:
-----------
I suspect that in the apt-get utility, the exit code when using dpkg-deb
is not tested
best regards
--
----------------------------------------------------------------------------------
Jean-Marc Lacroix e-Mail : jlacroix@mail.club-internet.fr
Reply to: