[arch] fix: not detecting installed AUR packages anymore due to recent AUR API changes

This commit is contained in:
Vinicius Moreira
2022-02-09 14:14:46 -03:00
parent cd9b465f89
commit ddf0b92cf7
2 changed files with 3 additions and 2 deletions

View File

@@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Fixes
- Arch
- silent crash when handling and displaying transaction sub-status
- AUR: not detecting installed packages anymore due to recent AUR API changes
- AppImage
- search: displaying duplicate installed apps for some cases

View File

@@ -214,8 +214,8 @@ class AURClient:
return self.extract_required_dependencies(info)
def _map_names_as_queries(self, names) -> str:
return '&'.join(['arg[{}]={}'.format(i, urllib.parse.quote(n)) for i, n in enumerate(names)])
def _map_names_as_queries(self, names: Iterable[str]) -> str:
return '&'.join(['arg[]={}'.format(urllib.parse.quote(n)) for n in names])
def read_local_index(self) -> dict:
self.logger.info('Checking if the cached AUR index file exists')