[bin] make kill_gtk3 more reliable
This commit is contained in:
parent
09e8e74a59
commit
67b72d2762
@ -4,7 +4,6 @@ from entropy.server.interfaces import Server
|
|||||||
|
|
||||||
srv = Server()
|
srv = Server()
|
||||||
bad_pkgs = []
|
bad_pkgs = []
|
||||||
dep_cache = set()
|
|
||||||
|
|
||||||
gtk2_match = srv.atom_match("x11-libs/gtk+:2")
|
gtk2_match = srv.atom_match("x11-libs/gtk+:2")
|
||||||
gtk3_match = srv.atom_match("x11-libs/gtk+:3")
|
gtk3_match = srv.atom_match("x11-libs/gtk+:3")
|
||||||
@ -12,8 +11,7 @@ gtk3_match = srv.atom_match("x11-libs/gtk+:3")
|
|||||||
for repo_id in srv.repositories():
|
for repo_id in srv.repositories():
|
||||||
repo = srv.open_repository(repo_id)
|
repo = srv.open_repository(repo_id)
|
||||||
for pkg_id in repo.listAllPackageIds():
|
for pkg_id in repo.listAllPackageIds():
|
||||||
deps = [x for x in repo.retrieveDependencies(pkg_id) if x not in dep_cache]
|
deps = repo.retrieveDependencies(pkg_id)
|
||||||
dep_cache.update(deps)
|
|
||||||
for dep in deps:
|
for dep in deps:
|
||||||
matches, rc = srv.atom_match(dep, multi_match=True, multi_repo=True)
|
matches, rc = srv.atom_match(dep, multi_match=True, multi_repo=True)
|
||||||
if gtk3_match in matches:
|
if gtk3_match in matches:
|
||||||
|
Loading…
Reference in New Issue
Block a user