servers = cache.server_names()
- rc, re = cache.new_cache_entry(c, servers.root_server,
+ rc, re = cache.new_cache_entry(c, servers.dot,
"file://" .. project_root, { writeback=true }, nil, nil)
if not rc then
return false, re
end
local _server_names = strict.lock({
- -- XXX: inconsistent, confusing naming scheme
- root_server = ".",
+ dot = ".",
-- the proj_storage server is equivalent to
-- projects:info.project-locaton
proj_storage = "proj-storage",
return false, e
end
- if f.server ~= cache.server_names().root_server and not f.sha1 then
+ if f.server ~= cache.server_names().dot and not f.sha1 then
e:append("in group: %s", grp.name)
e:append("file entry for remote file without `sha1` attribute")
return false, e
local name = arguments[1]
local rlocation = string.format("%s/git/%s.git", info.project_location, name)
-- local
- local lserver = cache.server_names().root_server
+ local lserver = cache.server_names().dot
local llocation = string.format("in/%s/.git", name)
local rc, re = generic_git.new_repository(info.cache, lserver, llocation,
rserver, rlocation)
destdir = e2lib.join(bc.T, "script")
info = e2tool.info()
- rc, re = cache.fetch_file(info.cache, cache.server_names().root_server,
+ rc, re = cache.fetch_file(info.cache, cache.server_names().dot,
location, destdir)
if not rc then
e = err.new("installing build script")
end
rc, re = cache.fetch_file(info.cache,
- cache.server_names().root_server, location, destdir)
+ cache.server_names().dot, location, destdir)
if not rc then
return false, e:cat(re)
end
if not rc then
return false, e:cat(re)
end
- if file.server ~= cache.server_names().root_server and not file.sha1 then
+ if file.server ~= cache.server_names().dot and not file.sha1 then
return false, e:append(
"file entry for remote file without sha1 attribute")
end
-- @return Server name (string).
-- @return Location path to store results in (string).
local function storage_local(location, release_id)
- return cache.server_names().root_server , string.format("out")
+ return cache.server_names().dot , string.format("out")
end
--- Get deploy server and location.
if not e2lib.is_backup_file(f) then
location = e2lib.join("proj/init", f)
file = {
- server = cache.server_names().root_server,
+ server = cache.server_names().dot,
location = location,
}
-- buildscript
local file = {
- server = cache.server_names().root_server,
+ server = cache.server_names().dot,
location = e2tool.resultbuildscript(self:get_name_as_path()),
}
-- buildscript
local file = {
- server = cache.server_names().root_server,
+ server = cache.server_names().dot,
location = e2tool.resultbuildscript(self:get_name_as_path()),
}
end
e2lib.logf(3, "init file: %s", f)
- local server = cache.server_names().root_server
+ local server = cache.server_names().dot
local location = e2lib.join("proj/init", f)
local cache_flags = {}
rc, re = cache.fetch_file(info.cache, server, location,
e2tool.resultbuildscript(dep:get_name_as_path())
}
for _,file in pairs(files) do
- local server = cache.server_names().root_server
+ local server = cache.server_names().dot
local cache_flags = {}
rc, re = cache.fetch_file(info.cache, server, file, destdir,
nil, cache_flags)
return false, e:cat(re)
end
-- install the global Makefiles
- local server = cache.server_names().root_server
+ local server = cache.server_names().dot
local destdir = e2lib.join(bc.T, "project")
local cache_flags = {}
local locations = {
if not f.location then
error(e:append("file entry without `location' attribute"))
end
- if f.server ~= cache.server_names().root_server and not f.sha1 then
+ if f.server ~= cache.server_names().dot and not f.sha1 then
error(e:append("file entry for remote file without "..
"`sha1` attribute"))
end