Package: sbuild
Version: 0.72.0-2
Severity: normal
Tags: patch

Dear Maintainer,

When the --source-only-changes option is given to sbuild, the wrong .changes
(i.e. the source-only one) is passed to piuparts, and also to the post-build
commands through the "%c" and "%SBUILD_CHANGES" substition variables.

The attached patch fixes the issue (though I'm not sure it's the right way of
doing it).

Best,

-- 
 .''`.    Sébastien Villemot
: :' :    Debian Developer
`. `'     http://sebastien.villemot.name
  `-      GPG Key: 4096R/381A7594
--- Build.pm.old	2016-10-31 14:17:35.594681135 +0100
+++ Build.pm	2016-10-31 14:17:24.738794318 +0100
@@ -2474,7 +2474,9 @@
 		    failstage => "source-only-changes");
 	    }
 
+            my $changes_bak = $self->get('Changes File');
 	    my $pchanges = &$copy_changes($so_changes);
+            $self->set('Changes File', $changes_bak);
 	}
 
 	$self->log_subsection("Package contents");

Attachment: signature.asc
Description: PGP signature

Reply via email to