-- This execute additional check just after dependency is solved.
-- Aboid to install more than 2 self-build-* packages at same time.

cklist = ""

list = pkglist()
for i, pkg in pairs(list) do
    if statinstall(pkg) or statnewinstall(pkg) then
	cklist = cklist.." "..pkgname(pkg)
    end
end 

if cklist then
    if os.execute("/usr/lib/rpm/check-self-build.sh "..cklist) ~= 0 then
        apterror(_("Aborting Install."))
    end
end
