From a618b3e373c7946b2b29a81a1b2a106d5fb86ae5 Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Mon, 10 Oct 2016 17:38:51 +0200 Subject: [PATCH] collect_project: reject converting unknown res types Signed-off-by: Tobias Ulmer --- plugins/collect_project.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/collect_project.lua b/plugins/collect_project.lua index 199cd18..8e9e316 100644 --- a/plugins/collect_project.lua +++ b/plugins/collect_project.lua @@ -127,10 +127,10 @@ local function _build_collect_project(self, res, return_flags) for depname in cp_depends:iter_sorted() do local dep = result.results[depname] - if not dep:isInstanceOf(result.result_class) then + if dep:get_type() ~= "result" then return false, - e:append("collect_project cannot work with this result type: %q", - dep:get_name()) + err.new("can not convert result %q, type %q is unsupported", + dep:get_name(), dep:get_type()) end cp_chroot:insert_sl(dep:my_chroot_list()) cp_sources:insert_sl(dep:my_sources_list()) -- 2.39.5