From: Ian Jackson Date: Wed, 16 Nov 2016 21:47:49 +0000 (+0000) Subject: WIP before only some args then -- X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=1651a9b25631f22f5869db607c112b744958c601;p=dgit.git WIP before only some args then -- --- diff --git a/dgit b/dgit index 9c7ec734..51a8271b 100755 --- a/dgit +++ b/dgit @@ -6208,7 +6208,8 @@ sub cmd_build_source { printdone "source built, results in $dscfn and $sourcechanges"; } -sub cmd_sbuild { +sub external_binbuilder (&$) { + my ($fn, $postbuild_msg) = @_; build_source(); midbuild_checkchanges(); in_parent { @@ -6216,16 +6217,57 @@ sub cmd_sbuild { stat_exists $dscfn or fail "$dscfn (in parent directory): $!"; stat_exists $sourcechanges or fail "$sourcechanges (in parent directory): $!"; + $fn->(); } - runcmd_ordryrun_local @sbuild, qw(-d), $isuite, @ARGV, $dscfn; }; maybe_unapply_patches_again(); in_parent { - postbuild_mergechanges(<