diff --git a/CHANGELOG.md b/CHANGELOG.md index b8a97613..ed12f1f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - 'clean cache' operation was not working in some scenarios - upgrading progress when conflicting files are detected - not detecting some installed 'not-signed' repository packages + - not properly caching data of installed dependencies - upgrade: crashing for scenarios when there are packages that cannot upgrade to be displayed on the summary window - settings: crashing when an empty Qt style is defined [#104](https://github.com/vinifmor/bauh/issues/104) diff --git a/bauh/gems/arch/controller.py b/bauh/gems/arch/controller.py index 3fd0b898..e0627549 100644 --- a/bauh/gems/arch/controller.py +++ b/bauh/gems/arch/controller.py @@ -1648,9 +1648,20 @@ class ArchManager(SoftwareManager): if installed: context.watcher.change_substatus(self.i18n['status.caching_data'].format(bold(context.name))) + if not context.maintainer: + if context.pkg and context.pkg.maintainer: + pkg_maintainer = context.pkg.maintainer + elif context.repository == 'aur': + aur_infos = self.aur_client.get_info({context.name}) + pkg_maintainer = aur_infos[0].get('Maintainer') if aur_infos else None + else: + pkg_maintainer = context.repository + else: + pkg_maintainer = context.maintainer + cache_map = {context.name: ArchPackage(name=context.name, repository=context.repository, - maintainer=context.maintainer, + maintainer=pkg_maintainer, categories=self.categories.get(context.name))} if context.missing_deps: aur_deps = {dep[0] for dep in context.missing_deps if dep[1] == 'aur'}