From 4cc602e54d03bcebe5ea20df7299abb8df13a2e4 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Fri, 27 May 2022 12:32:50 -0300 Subject: [PATCH] [arch] fix: using the pkgbase instead of pkgname when querying for the 'LastModified' field --- bauh/gems/arch/controller.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bauh/gems/arch/controller.py b/bauh/gems/arch/controller.py index a54809d0..c27724b9 100644 --- a/bauh/gems/arch/controller.py +++ b/bauh/gems/arch/controller.py @@ -1859,7 +1859,7 @@ class ArchManager(SoftwareManager, SettingsController): if dep[1] == 'aur': dep_context = context.gen_dep_context(dep[0], dep[1]) dep_src = self.aur_client.get_src_info(dep[0]) - dep_context.base = dep_src['pkgbase'] + dep_context.base = dep_src['pkgbase'] if dep_src['pkgbase'] else dep[0] aur_deps_context.append(dep_context) else: repo_deps.append(dep) @@ -1914,7 +1914,7 @@ class ArchManager(SoftwareManager, SettingsController): return repo_dep_names if aur_deps_context: - aur_deps_info = self.aur_client.get_info((c.name for c in aur_deps_context)) + aur_deps_info = self.aur_client.get_info((c.base for c in aur_deps_context)) aur_deps_data = None if aur_deps_info: @@ -1922,7 +1922,7 @@ class ArchManager(SoftwareManager, SettingsController): for aur_context in aur_deps_context: if aur_deps_data: - dep_data = aur_deps_data.get(aur_context.name) + dep_data = aur_deps_data.get(aur_context.base) if dep_data: last_modified = dep_data.get('LastModified')