Mercurial > gnulib
changeset 39009:db571ae99aa5
module: yet another fix in transitive closure; style changes
author | Dmitry Selyutin <ghostmansd@gmail.com> |
---|---|
date | Fri, 29 Sep 2017 00:51:41 +0300 |
parents | 0ca80883f391 |
children | 73575af96c9a |
files | pygnulib/module.py |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/pygnulib/module.py Fri Sep 29 00:13:18 2017 +0300 +++ b/pygnulib/module.py Fri Sep 29 00:51:41 2017 +0300 @@ -536,9 +536,10 @@ base = _transitive_closure_(False) full = _transitive_closure_(True) - main = set(module for (module, _, _) in base) - final = set(module for (module, _, _) in full) - tests = (final - {module for module in main if module.applicability != "all"}) + ignore = {"main"} if tests else {"main", "all"} + main = {module for (module, _, _) in base} + final = {module for (module, _, _) in full} if tests else set(main) + tests = (final - {module for module in main if module.applicability in ignore}) return (base, full, main, final, tests)