chiark / gitweb /
dgit: factor out build_or_push_prep_early sub
authorSean Whitton <spwhitton@spwhitton.name>
Sun, 12 Feb 2017 23:14:24 +0000 (16:14 -0700)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 26 Jul 2017 21:52:28 +0000 (22:52 +0100)
commit8b34c8e50e236ea9340693c9a425cc2cb2f957ad
treeafdbe9e0b80a562a29d0c03ea466f2ce446f6b14
parentdfe552723d6904f4a16a95d5a13fdec43cbb10c8
dgit: factor out build_or_push_prep_early sub

This is to permit code deduplication between the commands for pushing
and building.  Both these sets of commands deny usage of -p, and set
$isuite, $package and $version based on the changelog.

In particular, a command that will perform a build /and/ a push can
first perform the check for -p, set $package and then call functions
to do the build.  These latter functions will not complain that
$package is set thanks to the $build_or_push_prep_early_done logic.

No functional change.

Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Acked-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dgit