From 12ece166a931d546fc6d152f253f7b78e7478dc7 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 31 Jul 2016 17:45:18 +0100 Subject: Split tags: Preparation: Break out access_cfg_tagformats No functional change. Signed-off-by: Ian Jackson --- dgit | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'dgit') diff --git a/dgit b/dgit index 495a043..7306d7d 100755 --- a/dgit +++ b/dgit @@ -1134,13 +1134,17 @@ sub archive_query_dummycat ($$) { #---------- tag format handling ---------- +sub access_cfg_tagformats () { + split /\,/, access_cfg('dgit-tag-format'); +} + sub select_tagformat () { # sets $tagformatfn 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'); + my (@supported) = access_cfg_tagformats(); printdebug "select_tagformat supported @supported\n"; $tagformat_want //= [ $supported[0], "distro access configuration", 0 ]; -- cgit v1.2.3