Signed-off-by: Tobias Ulmer <tu@emlix.com>
return false, re
end
+ if e2tool.current_tool() == "fetch-sources" then
+ e2option.flag("git", "select git sources")
+ end
+
return true
end
git.git_source = class("git_source", source.basic_source)
+function git.git_source.static:is_scm_source_class()
+ return true
+end
+
+function git.git_source.static:is_selected_source_class(opts)
+ assertIsTable(self)
+ assertIsTable(opts)
+
+ if e2tool.current_tool() == "fetch-sources" and opts["git"] then
+ return true
+ end
+ return false
+end
+
function git.git_source:initialize(rawsrc)
assert(type(rawsrc) == "table")
assert(type(rawsrc.name) == "string" and rawsrc.name ~= "")