diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2018-07-26 07:59:30 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2018-07-26 10:24:52 +0100 |
commit | 593dbae1303117fc730c28da7f7e3d767d77f777 (patch) | |
tree | fa95d82c04f3854b0669e1510c85f54514a24955 | |
parent | 340a659359f6e9537513355fcbd7309c4d45a10d (diff) |
dgit: Abolish build_source_for_push
This sub has only one caller and the indirection is not really
helpful IMO.
NFC.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rwxr-xr-x | dgit | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -4770,7 +4770,10 @@ sub cmd_push_source { } } else { # Building a source package is very fast, so just do it - build_source_for_push(); + build_source(); + die "er, patches are applied dirtily but shouldn't be.." + if $patches_applied_dirtily; + $changesfile = $sourcechanges; } dopush(); } @@ -6409,13 +6412,6 @@ sub cmd_gbp_build { } sub cmd_git_build { cmd_gbp_build(); } # compatibility with <= 1.0 -sub build_source_for_push { - build_source(); - die "er, patches are applied dirtily but shouldn't be.." - if $patches_applied_dirtily; - $changesfile = $sourcechanges; -} - sub build_source { build_prep_early(); build_prep(); |