From 70b3c8cafead61e146f9ddb3bd15b04ab080454d Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 4 Dec 2017 14:04:23 +0100 Subject: buildrepo: only skip packages with missing deps when -s is specified This is so we will catch errors when there are circular dependencies and get the error triggered when trying to build the package. Otherwise the packages will not be built at all and warning easily gets unnoticed. For example rust -> cargo -> rust --- bin/buildrepo.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/buildrepo.lua b/bin/buildrepo.lua index b0c2650..b33703f 100755 --- a/bin/buildrepo.lua +++ b/bin/buildrepo.lua @@ -203,7 +203,7 @@ for _, repo in pairs(args) do repo_built = stats[repo].relevant_aports - #pkgs + built, repo_total = stats[repo].relevant_aports, } - if not db:known_deps_exists(aport) then + if opts.s and (not db:known_deps_exists(aport)) then warn("%s: Skipped due to missing dependencies", aport.pkgname) elseif not (opts.s and skip_aport(aport)) then log_progress(progress, repo, aport) -- cgit v1.2.3