From f4e23593ad4e04711ec34d5b1d70f3a0508f2b66 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 26 Jul 2015 19:49:19 +0100 Subject: [PATCH 1/1] Configuration: Break out access_cfg_cfgs --- dgit | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dgit b/dgit index de14f92b..4c6cc9c2 100755 --- a/dgit +++ b/dgit @@ -645,7 +645,7 @@ sub access_distros () { @l; } -sub access_cfg (@) { +sub access_cfg_cfgs (@) { my (@keys) = @_; my @cfgs; # The nesting of these loops determines the search order. We put @@ -672,6 +672,12 @@ sub access_cfg (@) { } push @cfgs, map { "dgit.default.$_" } @realkeys; push @cfgs, @rundef; + return @cfgs; +} + +sub access_cfg (@) { + my (@keys) = @_; + my (@cfgs) = access_cfg_cfgs(@keys); my $value = cfg(@cfgs); return $value; } -- 2.30.2