[fix][arch] not detecting some installed 'not-signed' repository packages

This commit is contained in:
Vinícius
2020-05-09 12:26:34 -03:00
parent 4564843144
commit 4bc4481e00
4 changed files with 19 additions and 14 deletions

View File

@@ -92,7 +92,7 @@ def _fill_ignored(res: dict):
res['pkgs'] = list_ignored_packages()
def map_installed(repositories: bool = True, aur: bool = True) -> dict: # returns a dict with with package names as keys and versions as values
def map_installed(repo_map: Dict[str, str], repositories: bool = True, aur: bool = True) -> dict: # returns a dict with with package names as keys and versions as values
ignored = {}
thread_ignored = Thread(target=_fill_ignored, args=(ignored,), daemon=True)
thread_ignored.start()
@@ -118,6 +118,12 @@ def map_installed(repositories: bool = True, aur: bool = True) -> dict: # retur
current_pkg = {}
if pkgs['not_signed']:
for name in {*pkgs['not_signed'].keys()}:
if repo_map.get(name):
pkgs['signed'][name] = pkgs['not_signed'][name]
del pkgs['not_signed'][name]
if pkgs['signed'] or pkgs['not_signed']:
thread_ignored.join()