mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 22:24:14 +02:00
[gems.arch] refactoring: minor enhancement over PR#335
This commit is contained in:
@@ -146,15 +146,14 @@ def map_packages(names: Optional[Iterable[str]] = None, remote: bool = False, si
|
|||||||
|
|
||||||
if ignored:
|
if ignored:
|
||||||
for key in ('signed', 'not_signed'):
|
for key in ('signed', 'not_signed'):
|
||||||
to_del = set()
|
|
||||||
|
|
||||||
if pkgs.get(key):
|
if pkgs.get(key):
|
||||||
|
to_del = set()
|
||||||
for pkg in pkgs[key].keys():
|
for pkg in pkgs[key].keys():
|
||||||
if pkg in ignored:
|
if pkg in ignored:
|
||||||
to_del.add(pkg)
|
to_del.add(pkg)
|
||||||
|
|
||||||
for pkg in to_del:
|
for pkg in to_del:
|
||||||
del pkgs[key][pkg]
|
del pkgs[key][pkg]
|
||||||
return pkgs
|
return pkgs
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user