From f70ce168ac4999e033019008f97502fc621815ae Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Tue, 20 Sep 2016 16:44:48 +0200 Subject: [PATCH] cache: rename default_repo to projects Signed-off-by: Tobias Ulmer --- generic/cache.lua | 6 +++--- local/e2-new-source.lua | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/generic/cache.lua b/generic/cache.lua index 89bfcc3..48874c4 100644 --- a/generic/cache.lua +++ b/generic/cache.lua @@ -135,7 +135,7 @@ function cache.setup_cache_local(c, project_root, project_location) end rc, re = cache.new_cache_entry(c, servers.proj_storage, - nil, nil, servers.default_repo, project_location) + nil, nil, servers.projects, project_location) if not rc then return false, re end @@ -150,9 +150,9 @@ local _server_names = strict.lock({ -- XXX: inconsistent, confusing naming scheme root_server = ".", -- the proj_storage server is equivalent to - -- default_repo_server:info.project-locaton + -- projects:info.project-locaton proj_storage = "proj-storage", - default_repo = "projects", + projects = "projects", default_files = "upstream", result_server = "results", releases = "releases", diff --git a/local/e2-new-source.lua b/local/e2-new-source.lua index 7bb6238..ac609fa 100644 --- a/local/e2-new-source.lua +++ b/local/e2-new-source.lua @@ -249,7 +249,7 @@ local function e2_new_source(arg) error(err.new(" argument required")) end -- remote - local rserver = cache.server_names().default_repo + local rserver = cache.server_names().projects if opts["server"] then rserver = opts["server"] end -- 2.39.5