Package: apt-zip
Version: 0.18
Severity: important

I run apt-zip-list on wheezy and the fetch script on lenny, and get for every 
package a wrong checksum.

When looking at debug output for the script (set -vx) it seems that
the checksum calculation is broken:

+ read URL FILE SIZE CHECKSUM
+ getfile 
http://ftp-stud.fht-esslingen.de/debian/pool/main/d/dnprogs/dnet-common_2.56_all.deb
 dnet-common_2.56_all.deb 42114 MD5Sum:794be6bd5ddf38f99131d35
b72e9abcb
+ '[' -r ../dnet-common_2.56_all.deb ']'
+ do_wget 
http://ftp-stud.fht-esslingen.de/debian/pool/main/d/dnprogs/dnet-common_2.56_all.deb
 dnet-common_2.56_all.deb 42114 MD5Sum:794be6bd5ddf38f99131d35
b72e9abcb
+ wget -t3 -nv -O dnet-common_2.56_all.deb 
http://ftp-stud.fht-esslingen.de/debian/pool/main/d/dnprogs/dnet-common_2.56_all.deb
2011-08-22 11:41:01 
URL:http://ftp-stud.fht-esslingen.de/debian/pool/main/d/dnprogs/dnet-common_2.56_all.deb
 [42114/42114] -> "dnet-common_2.56_all.deb" [1]
+ check dnet-common_2.56_all.deb MD5Sum:794be6bd5ddf38f99131d35b72e9abcb 0
+ '[' '!' -r dnet-common_2.56_all.deb ']'
+ '[' MD5Sum:794be6bd5ddf38f99131d35b72e9abcb = 0 ']'
+ '[' MD5Sum:794be6bd5ddf38f99131d35b72e9abcb = '' ']'
type sha256sum
++ type sha256sum
+ '[' 'sha256sum is /usr/bin/sha256sum' ']'
sha256sum $1 | cut -d' ' -f1
++ sha256sum dnet-common_2.56_all.deb
++ cut '-d ' -f1
+ '[' eb6664f78e635dff061637cf9242187645955b8aec1f4e3f94551a1c235a79e4 = 
MD5Sum:794be6bd5ddf38f99131d35b72e9abcb ']'
+ err dnet-common_2.56_all.deb 'wrong checksum'
+ echo 'Fetching dnet-common_2.56_all.deb failed (wrong checksum)'
Fetching dnet-common_2.56_all.deb failed (wrong checksum)

The output of

[ "`sha256sum $1 | cut -d' ' -f1`" = $2 ]

gives

'[' eb6664f78e635dff061637cf9242187645955b8aec1f4e3f94551a1c235a79e4 = 
MD5Sum:794be6bd5ddf38f99131d35b72e9abcb ']'

which indicates that apt-zip-list is broken (was there a format change in the 
Package file or whatever apt-zip-list processes)? Seems they went from sha256 
to md5sum (or support both now)... (?)

Thanks,
Rainer



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (600, 'testing'), (300, 'unstable'), (200, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.0.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages apt-zip depends on:
ii  apt                           0.8.15.5   Advanced front-end for dpkg

apt-zip recommends no packages.

apt-zip suggests no packages.

-- 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

Reply via email to