X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=dgit;h=65e8666cf3b2a4573918dfb8a98e6cf0eb02f067;hp=bf0d6398431340e1ff53feea1e478e472f75bb39;hb=11139d3b482e1503263833230a85b7fc1729895a;hpb=5a103560c1654caa2ceb955b32cfccc41c1f59c4 diff --git a/dgit b/dgit index bf0d6398..65e8666c 100755 --- a/dgit +++ b/dgit @@ -65,7 +65,7 @@ our $quilt_modes_re = 'linear|smash|auto|nofix|nocheck|gbp|unapplied'; our $we_are_responder; our $initiator_tempdir; our $patches_applied_dirtily = 00; -our $tagformat; +our $tagformat_want; our $tagformatfn; our %format_ok = map { $_=>1 } ("1.0","3.0 (native)","3.0 (quilt)"); @@ -1241,24 +1241,24 @@ sub create_remote_git_repo () { sub select_tagformat () { # sets $tagformatfn - return if $tagformatfn && !$tagformat; - die 'bug' if $tagformatfn && $tagformat; - # ... $tagformat assigned after previous select_tagformat + return if $tagformatfn && !$tagformat_want; + die 'bug' if $tagformatfn && $tagformat_want; + # ... $tagformat_want assigned after previous select_tagformat my (@supported) = split /\,/, access_cfg('dgit-tag-format'); printdebug "select_tagformat supported @supported\n"; - $tagformat //= [ $supported[0], "distro access configuration", 0 ]; - printdebug "select_tagformat specified @$tagformat\n"; + $tagformat_want //= [ $supported[0], "distro access configuration", 0 ]; + printdebug "select_tagformat specified @$tagformat_want\n"; - my ($fmt,$why,$override) = @$tagformat; + my ($fmt,$why,$override) = @$tagformat_want; fail "target distro supports tag formats @supported". " but have to use $fmt ($why)" unless $override or grep { $_ eq $fmt } @supported; - $tagformat = undef; + $tagformat_want = undef; $tagformatfn = ${*::}{"debiantag_$fmt"}; fail "trying to use unknown tag format \`$fmt' ($why) !" @@ -2382,9 +2382,9 @@ sub rpush_handle_protovsn_bothends () { if ($protovsn < 4) { fail "rpush negotiated protocol version $protovsn". " which supports old tag format only". - " but trying to use new format (".$tagformat->[1].")" - if $tagformat && $tagformat->[0] ne 'old'; - $tagformat = ['old', "rpush negotiated protocol $protovsn", 0]; + " but trying to use new format (".$tagformat_want->[1].")" + if $tagformat_want && $tagformat_want->[0] ne 'old'; + $tagformat_want = ['old', "rpush negotiated protocol $protovsn", 0]; } select_tagformat(); } @@ -3844,7 +3844,7 @@ sub parseopts () { } elsif (m/^--dgit-tag-format=(old|new)$/s) { # undocumented, for testing push @ropts, $_; - $tagformat = [ $1, 'command line', 1 ]; + $tagformat_want = [ $1, 'command line', 1 ]; # 1 menas overrides distro configuration } elsif (m/^--always-split-source-build$/s) { # undocumented, for testing