chiark / gitweb /
dgit: Move WANTSRC_* definitions up the file
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 25 Jul 2018 14:11:04 +0000 (15:11 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 26 Jul 2018 03:37:51 +0000 (04:37 +0100)
We are going to want these a bit earlier.  NFC.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dgit

diff --git a/dgit b/dgit
index 274f73aa9cc00cb7594f43f4f5f988cda5bca40d..56f1605ef2ab844505260f22c5404e0586f204c5 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -6108,6 +6108,10 @@ sub cmd_clean () {
     maybe_unapply_patches_again();
 }
 
+# return values from massage_dbp_args are one or both of these flags
+sub WANTSRC_SOURCE  () { 01; } # caller should build source (separately)
+sub WANTSRC_BUILDER () { 02; } # caller should run dpkg-buildpackage
+
 sub build_or_push_prep_early () {
     our $build_or_push_prep_early_done //= 0;
     return if $build_or_push_prep_early_done++;
@@ -6183,10 +6187,6 @@ sub changesopts () {
     return (changesopts_initial(), changesopts_version());
 }
 
-# return values from massage_dbp_args are one or both of these flags
-sub WANTSRC_SOURCE  () { 01; } # caller should build source (separately)
-sub WANTSRC_BUILDER () { 02; } # caller should run dpkg-buildpackage
-
 sub massage_dbp_args ($;$) {
     my ($cmd,$xargs) = @_;
     # We need to: