tags 425715 + patch
thanks

Lucas Nussbaum <[EMAIL PROTECTED]> writes:

> While rebuilding all packages in Debian with sbuild 0.54, I ran into 594
> failures during the "dsc verification" phase.

Ouch.  It looks like the filename used for the .dsc contains the
epoch, which needs to be stripped out.  Please could you try the
attached patch, and see if this fixes the problem for you?


Thanks,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
Index: sbuild
===================================================================
--- sbuild	(revision 1180)
+++ sbuild	(working copy)
@@ -409,7 +409,8 @@
 
 	my ($dscbase, $files, @other_files, $dscarchs, @made);
 
-	$dscbase = "${pkg}_${version}.dsc";
+	(my $sversion = $version) =~ s/^\d+://; # Strip epoch
+	$dscbase = "${pkg}_${sversion}.dsc";
 
 	my $build_depends = "";
 	my $build_depends_indep = "";
@@ -586,7 +587,7 @@
 	$main::this_space = 0;
 	$pkgv =~ /^([a-zA-Z\d.+-]+)_([a-zA-Z\d:.+~-]+)/;
 	my ($pkg, $version) = ($1,$2);
-	(my $sversion = $version) =~ s/^\d+://;
+	(my $sversion = $version) =~ s/^\d+://; # Strip epoch
 	my $tmpunpackdir = $dsc;
 	$tmpunpackdir =~ s/-.*$/.orig.tmp-nest/;
 	$tmpunpackdir =~ s/_/-/;
@@ -2607,6 +2608,8 @@
 			}
 		}
 		close( DSC ) or print PLOG "Failed to close $dsc\n";
+	} else {
+		print PLOG "Failed to open $dsc\n";
 	}
 
 	return \%dsc_md5;

Attachment: pgpnG9OezbWFx.pgp
Description: PGP signature

Reply via email to