Move function check_deps in mkpkg_shared_functions