Re: Bug#818579: ftp.debian.org: experimental Sources missing the Files: header
Samuel Thibault, on Fri 18 Mar 2016 10:40:21 +0100, wrote:
> FWIW, it seems the sid version also requires the Files: header,
> actually.
I'm currently trying the attached patch. It doesn't seem like a proper
long-term solution, though.
Samuel
diff --git a/lib/Sbuild/Build.pm b/lib/Sbuild/Build.pm
index 2442da8..084800e 100644
--- a/lib/Sbuild/Build.pm
+++ b/lib/Sbuild/Build.pm
@@ -877,7 +877,7 @@ sub fetch_source_files {
while( <$pipe> ) {
$package = $1 if /^Package:\s+(\S+)\s*$/mi;
$ver = $1 if /^Version:\s+(\S+)\s*$/mi;
- $tfile = $1 if /^Files:\s*\n((\s+.*\s*\n)+)/mi;
+ $tfile = $1 if /^Checksums-Sha256:\s*\n((\s+.*\s*\n)+)/mi;
if (defined $package && defined $ver && defined $tfile) {
@{$entries{"$package $ver"}} = map { (split( /\s+/, $_ ))[3] }
split( "\n", $tfile );
Reply to: