From e326ba46e22d7543159ca99af5a4f32cf71b0133 Mon Sep 17 00:00:00 2001 From: Adam Heath Date: Fri, 23 Aug 2002 04:12:50 +0000 Subject: [PATCH] Fix extraction of md5sum in dpkg-scanpackages. --- ChangeLog | 5 +++++ debian/changelog | 1 + scripts/dpkg-scanpackages.pl | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 39451722..fa7300a1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Aug 22 23:06:39 CDT 2002 Adam Heath + + * scripts/dpkg-scanpackages.pl: Fix extraction of md5sum in + dpkg-scanpackages. + Thu Aug 22 23:01:53 CDT 2002 Adam Heath * utils/md5sum.c: Fix segfault in md5sum if the file being checked diff --git a/debian/changelog b/debian/changelog index ac3243fc..4a167e7f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ dpkg (1.10.5) unstable; urgency=low * Fix segfault in md5sum if the file being checked doesn't exist. Closes: #154503. + * Fix extraction of md5sum in dpkg-scanpackages. Closes: #153769. -- Adam Heath UNRELEASED diff --git a/scripts/dpkg-scanpackages.pl b/scripts/dpkg-scanpackages.pl index bc403ceb..50c85974 100755 --- a/scripts/dpkg-scanpackages.pl +++ b/scripts/dpkg-scanpackages.pl @@ -104,7 +104,7 @@ while () { open(C,"md5sum <$fn |") || die "$fn $!"; chop($_=); 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"; -- 2.39.5