-- <directory>/licences
local rc, re, out
local e = err.new("converting result")
- rc, re = scm.generic_source_check(info, sourcename, true)
+ local src = source.sources[sourcename]
+
+ rc, re = src:working_copy_available()
if not rc then
return false, e:cat(re)
end
- local src = source.sources[sourcename]
+
+ rc, re = src:check_workingcopy()
+ if not rc then
+ return false, e:cat(re)
+ end
+
-- write makefile
local makefile = "Makefile"
local source = "source"
e = err.new("preparing git source %s failed", self._name)
- info = e2tool.info()
- rc, re = scm.generic_source_check(info, self._name, true)
+ rc, re = self:working_copy_available()
+ if not rc then
+ return false, e:cat(re)
+ end
+
+ rc, re = self:check_workingcopy()
if not rc then
return false, e:cat(re)
end
gitdir = e2lib.join(srcdir, ".git")
+ info = e2tool.info()
rc, re = git.git_commit_id(info, self._name, sourceset)
if not rc then
return false, e:cat(re)
function git.toresult(info, sourcename, sourceset, directory)
local rc, re, argv
local e = err.new("converting result")
- rc, re = scm.generic_source_check(info, sourcename, true)
+ local src = source.sources[sourcename]
+
+ rc, re = src:working_copy_available()
if not rc then
return false, e:cat(re)
end
- local src = source.sources[sourcename]
+
+ rc, re = src:check_workingcopy()
+ if not rc then
+ return false, e:cat(re)
+ end
+
local makefile = "Makefile"
local source = "source"
local sourcedir = e2lib.join(directory, source)
hash.hash_append(hc, lid)
end
- rc, re = scm.generic_source_check(e2tool.info(), self._name, true)
+ rc, re = self:working_copy_available()
+ if not rc then
+ return false, e:cat(re)
+ end
+
+ rc, re = self:check_workingcopy()
if not rc then
return false, e:cat(re)
end
e = err.new("updating source '%s' failed", self._name)
- rc, re = scm.generic_source_check(e2tool.info(), self._name, true)
+ rc, re = self:working_copy_available()
+ if not rc then
+ return false, e:cat(re)
+ end
+
+ rc, re = self:check_workingcopy()
if not rc then
return false, e:cat(re)
end
e = err.new("preparing source failed: %s", self._name)
- rc, re = scm.generic_source_check(e2tool.info(), self._name, true)
+ rc, re = self:working_copy_available()
+ if not rc then
+ return false, e:cat(re)
+ end
+
+ rc, re = self:check_workingcopy()
if not rc then
return false, e:cat(re)
end
local argv
e = err.new("converting source %q failed", sourcename)
+ src = source.sources[sourcename]
- rc, re = scm.generic_source_check(info, sourcename, true)
+ rc, re = src:working_copy_available()
+ if not rc then
+ return false, e:cat(re)
+ end
+
+ rc, re = src:check_workingcopy()
if not rc then
return false, e:cat(re)
end
- src = source.sources[sourcename]
srcdir = "source"
sourcedir = e2lib.join(directory, srcdir)
archive = string.format("%s.tar.gz", sourcename)
-- <directory>/licences
local rc, re
local e = err.new("converting result")
- rc, re = scm.generic_source_check(info, sourcename, true)
+ local src = source.sources[sourcename]
+
+ rc, re = src:working_copy_available()
if not rc then
return false, e:cat(re)
end
- local src = source.sources[sourcename]
+
+ rc, re = src:check_workingcopy()
+ if not rc then
+ return false, e:cat(re)
+ end
+
-- write makefile
local makefile = "Makefile"
local source = "source"