end
local function collect_project_exit(ctx)
+ local rc, re
+
+ rc, re = result.deregister_result_class("collect_project",
+ collect_project_class)
+ if not rc then
+ return false, re
+ end
+
+ rc, re = result.deregister_type_detection(detect_cp_result)
+ if not rc then
+ return false, re
+ end
+
return true
end
return true
end,
- exit = function (ctx) return true end,
+ exit = function (ctx)
+ local rc, re
+
+ for typ, theclass in result.iterate_result_classes() do
+ if typ == "collect_project" then
+ theclass:remove_source_to_result_fn("cvs", cvs_to_result)
+ break
+ end
+ end
+
+ rc, re = source.deregister_source_class("cvs", cvs.cvs_source)
+ if not rc then
+ return false, re
+ end
+
+ return true
+ end,
depends = {
"collect_project.lua"
}
return true
end,
- exit = function (ctx) return true end,
+ exit = function (ctx)
+ local rc, re
+
+ for typ, theclass in result.iterate_result_classes() do
+ if typ == "collect_project" then
+ theclass:remove_source_to_result_fn("files", files_to_result)
+ break
+ end
+ end
+
+ rc, re = source.deregister_source_class("files", files.files_source)
+ if not rc then
+ return false, re
+ end
+
+ return true
+ end,
depends = {
"collect_project.lua",
}
plugin_descriptor = {
description = "Git SCM Plugin",
init = git_plugin_init,
- exit = function (ctx) return true end,
+ exit = function (ctx)
+ local rc, re
+
+ for typ, theclass in result.iterate_result_classes() do
+ if typ == "collect_project" then
+ theclass:remove_source_to_result_fn("git", git_to_result)
+ break
+ end
+ end
+
+ rc, re = source.deregister_source_class("git", git.git_source)
+ if not rc then
+ return false, re
+ end
+
+ return true
+ end,
depends = {
"collect_project.lua"
}
--------------------------------------------------------------------------------
-local function gitrepo_plugin_init()
+local function gitrepo_plugin_init(ctx)
local rc, re
rc, re = source.register_source_class("gitrepo", gitrepo_source)
plugin_descriptor = {
description = "Provides Git repository as source",
init = gitrepo_plugin_init,
- exit = function(ctx) return true end,
+ exit = function (ctx)
+ local rc, re
+
+ for typ, theclass in result.iterate_result_classes() do
+ if typ == "collect_project" then
+ theclass:remove_source_to_result_fn("gitrepo", gitrepo_to_result)
+ break
+ end
+ end
+
+ rc, re = source.deregister_source_class("gitrepo", gitrepo_source)
+ if not rc then
+ return false, re
+ end
+
+ return true
+ end,
depends = {
"collect_project.lua"
}
return true
end,
- exit = function (ctx) return true end,
+ exit = function (ctx)
+ local rc, re
+
+ for typ, theclass in result.iterate_result_classes() do
+ if typ == "collect_project" then
+ theclass:remove_source_to_result_fn("licence",
+ licences_to_result)
+ break
+ end
+ end
+
+ rc, re = source.deregister_source_class("licence", licence_source)
+ if not rc then
+ return false, re
+ end
+
+ return true
+ end,
depends = {
"collect_project.lua"
}
return true
end,
- exit = function (ctx) return true end,
+ exit = function (ctx)
+ local rc, re
+
+ for typ, theclass in result.iterate_result_classes() do
+ if typ == "collect_project" then
+ theclass:remove_source_to_result_fn("svn", svn_to_result)
+ break
+ end
+ end
+
+ rc, re = source.deregister_source_class("svn", svn.svn_source)
+ if not rc then
+ return false, re
+ end
+
+ return true
+ end,
depends = {
"collect_project.lua"
}