summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-12-04 14:04:23 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2017-12-04 14:07:43 +0100
commit70b3c8cafead61e146f9ddb3bd15b04ab080454d (patch)
tree2d48c42598c4cc77d875458b2fb8f626132f983e
parentf7a115458a107a572176c681a136c6eaffa959cc (diff)
downloadlua-aports-70b3c8cafead61e146f9ddb3bd15b04ab080454d.tar.bz2
lua-aports-70b3c8cafead61e146f9ddb3bd15b04ab080454d.tar.xz
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
-rwxr-xr-xbin/buildrepo.lua2
1 files changed, 1 insertions, 1 deletions
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)