From dad4b4972a5716cbafb9b9347cec5d7e90a55b80 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Fri, 27 Jul 2018 12:08:53 +0800 Subject: dgit: factor out build_with_binary_builder() The pbuilder and cowbuilder subcommands will reuse this code. Signed-off-by: Sean Whitton --- dgit | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/dgit b/dgit index 3d9e5f6..031380c 100755 --- a/dgit +++ b/dgit @@ -6492,7 +6492,16 @@ sub cmd_push_source { } sub cmd_sbuild { - build_prep(WANTSRC_SOURCE); # not BUILDER because sbuild uses the .dsc + build_prep_early(); + build_with_binary_builder(\@sbuild, <