diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-07-19 15:38:29 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-07-19 19:36:16 +0100 |
commit | 175b4406b72856290aca44d0f06671a452537dfe (patch) | |
tree | 0f251eeb8698941022823f1c73f89a2d609cddde | |
parent | 9308011c98e2dc4d930efb0991fe92467c23c4ad (diff) |
Rename $access_pushing to $access_forpush and read it via a function (nfc)
-rwxr-xr-x | dgit | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -547,10 +547,14 @@ sub access_quirk () { return ('none',undef); } -our $access_pushing = 0; +our $access_forpush = 0; sub pushing () { - $access_pushing = 1; + $access_forpush = 1; +} + +sub access_forpush () { + return $access_forpush; } sub access_distros () { @@ -568,7 +572,7 @@ sub access_distros () { unshift @l, $instead_distro; @l = grep { defined } @l; - if ($access_pushing) { + if (access_forpush()) { @l = map { ("$_/push", $_) } @l; } @l; |