diff --git a/CHANGELOG.md b/CHANGELOG.md index 322d6f26..e519e135 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - nativefier URL moved to [bauh-files](https://github.com/vinifmor/bauh-files/blob/master/web/env/v1/environment.yml) ### Fixes +- Arch + - crashing when trying to upgrade AUR packages which data could not be retrieved + - Installation setup - wrong style resources paths diff --git a/bauh/gems/arch/pacman.py b/bauh/gems/arch/pacman.py index e629ed7e..dbda8042 100644 --- a/bauh/gems/arch/pacman.py +++ b/bauh/gems/arch/pacman.py @@ -632,8 +632,8 @@ def map_updates_data(pkgs: Iterable[str], files: bool = False) -> dict: else: output = run_cmd('pacman -Si {}'.format(' '.join(pkgs))) + res = {} if output: - res = {} latest_name = None data = {'ds': None, 's': None, 'v': None, 'c': None, 'p': None, 'd': None, 'r': None} latest_field = None @@ -713,7 +713,7 @@ def map_updates_data(pkgs: Iterable[str], files: bool = False) -> dict: else: data[latest_field].update((w.strip() for w in l.split(' ') if w)) - return res + return res def upgrade_several(pkgnames: Iterable[str], root_password: str, overwrite_conflicting_files: bool = False, skip_dependency_checks: bool = False) -> SimpleProcess: