mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 14:04:16 +02:00
[arch] refactoring: replacing some sets by tuples
This commit is contained in:
@@ -2414,7 +2414,7 @@ class ArchManager(SoftwareManager):
|
|||||||
if context.pkg and context.pkg.maintainer:
|
if context.pkg and context.pkg.maintainer:
|
||||||
pkg_maintainer = context.pkg.maintainer
|
pkg_maintainer = context.pkg.maintainer
|
||||||
elif context.repository == 'aur':
|
elif context.repository == 'aur':
|
||||||
aur_infos = self.aur_client.get_info({context.name})
|
aur_infos = self.aur_client.get_info((context.name,))
|
||||||
pkg_maintainer = aur_infos[0].get('Maintainer') if aur_infos else None
|
pkg_maintainer = aur_infos[0].get('Maintainer') if aur_infos else None
|
||||||
else:
|
else:
|
||||||
pkg_maintainer = context.repository
|
pkg_maintainer = context.repository
|
||||||
@@ -3512,7 +3512,7 @@ class ArchManager(SoftwareManager):
|
|||||||
|
|
||||||
self.aur_client.clean_caches()
|
self.aur_client.clean_caches()
|
||||||
|
|
||||||
apidatas = self.aur_client.get_info({pkg.name})
|
apidatas = self.aur_client.get_info((pkg.name,))
|
||||||
|
|
||||||
if not apidatas:
|
if not apidatas:
|
||||||
watcher.show_message(title=self.i18n['error'],
|
watcher.show_message(title=self.i18n['error'],
|
||||||
|
|||||||
Reference in New Issue
Block a user