[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#153769: dpkg-dev: dpkg-scanpackages fails to include md5sum

Package: dpkg-dev
Version: 1.10.4
Severity: important
File: /usr/bin/dpkg-scanpackages
Tags: patch


dpkg-scanpackages fails to include the md5sum of packages thus
breaking boot-floppies and debootstrap with a local package pool
(partly due to another bug in debootstrab not handling missing

dpkg-scansources uses a different method to extract the md5sum. Not
sure if that works. Why not use the same method in both? Or even use
the MD5 Module of perl?

Anyway you missed () when matching for the md5sum pattern:

--- scripts/dpkg-scanpackages.pl        Sat May 25 04:05:06 2002
+++ /tmp/dpkg-scanpackages.pl   Sun Jul 21 21:26:03 2002
@@ -104,7 +104,7 @@
     open(C,"md5sum <$fn |") || die "$fn $!";
     chop($_=<C>); close(C); $? and die "\`md5sum < $fn' exited with $?\n";
-    /^[0-9a-f]{32}\s*-?\s*$/ or die "Strange text from \`md5sum < $fn': \`$_'\n";
+    /^([0-9a-f]{32})\s*-?\s*$/ or die "Strange text from \`md5sum < $fn': \`$_'\n";
     $tv{'MD5sum'}= $1;
     @stat= stat($fn) or die "Couldn't stat $fn: $!\n";


-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux dual 2.4.16 #19 SMP Sat Jul 6 04:37:14 CEST 2002 i686
Locale: LANG=C, LC_CTYPE=de_DE

Versions of packages dpkg-dev depends on:
ii  binutils          The GNU assembler, linker and bina
ii  cpio                       2.5-1         GNU cpio -- a program to manage ar
ii  make                       3.79.1-14     The GNU version of the "make" util
ii  patch                      2.5.4-11      Apply a diff file to an original
ii  perl [perl5]               5.6.1-7       Larry Wall's Practical Extraction 
ii  perl-modules               5.6.1-7       Core Perl modules.

-- no debconf information

To UNSUBSCRIBE, email to debian-dpkg-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: