Package: sbuild Version: 0.64.2-1 Followup-For: Bug #714149 Hi, i've attached a patch to be able to pass --extra-package options to post-build-commands like this:
$external_commands = { 'post-build-commands' => [['adt-run', '-q', '%EXTRA_PACKAGES', '--changes=%SBUILD_CHANGES', '---', 'schroot', 'sid-amd64-sbuild']] }; This is not canonic and probably need more work, yet it is unbelievably useful :) Jérémy
--- Build.pm.orig 2014-07-23 00:32:03.361989931 +0200 +++ Build.pm.new 2014-07-23 01:08:41.815420735 +0200 @@ -1071,11 +1071,14 @@ # %SBUILD_DSC) from the commands to run with the appropriate subsitutions. my $dsc = $self->get('DSC'); my $changes; + my @extrapackages; $changes = $self->get('Changes File') if ($self->get('Changes File')); + @extrapackages = @{$self->get_conf('EXTRA_PACKAGES')}; my %percent = ( "%" => "%", "d" => $dsc, "SBUILD_DSC" => $dsc, "c" => $changes, "SBUILD_CHANGES" => $changes, + "EXTRA_PACKAGES" => join(" ", map { '--binary=' . $_ } @extrapackages) ); # Our escapes pattern, with longer escapes first, then sorted lexically. my $keyword_pat = join("|",