update_manager: add arch filter

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2023-01-31 12:02:01 -05:00
parent b02e766a4d
commit c1e4142a40
No known key found for this signature in database
GPG Key ID: 5A1EB336DFB4C71B
1 changed files with 4 additions and 2 deletions

View File

@ -850,8 +850,10 @@ class PackageKitProvider(BasePackageProvider):
) -> None:
notify: bool = kwargs.get('notify', False)
await self.refresh_packages(notify=notify)
flags = PkEnum.Filter.NEWEST | PkEnum.Filter.NOT_INSTALLED | \
PkEnum.Filter.BASENAME
flags = (
PkEnum.Filter.NEWEST | PkEnum.Filter.NOT_INSTALLED |
PkEnum.Filter.BASENAME | PkEnum.Filter.ARCH
)
pkgs = await self.run_transaction("resolve", flags.value, package_list)
pkg_ids = [info['package_id'] for info in pkgs if 'package_id' in info]
if pkg_ids: