update_manager: add arch filter
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
b02e766a4d
commit
c1e4142a40
|
@ -850,8 +850,10 @@ class PackageKitProvider(BasePackageProvider):
|
||||||
) -> None:
|
) -> None:
|
||||||
notify: bool = kwargs.get('notify', False)
|
notify: bool = kwargs.get('notify', False)
|
||||||
await self.refresh_packages(notify=notify)
|
await self.refresh_packages(notify=notify)
|
||||||
flags = PkEnum.Filter.NEWEST | PkEnum.Filter.NOT_INSTALLED | \
|
flags = (
|
||||||
PkEnum.Filter.BASENAME
|
PkEnum.Filter.NEWEST | PkEnum.Filter.NOT_INSTALLED |
|
||||||
|
PkEnum.Filter.BASENAME | PkEnum.Filter.ARCH
|
||||||
|
)
|
||||||
pkgs = await self.run_transaction("resolve", flags.value, package_list)
|
pkgs = await self.run_transaction("resolve", flags.value, package_list)
|
||||||
pkg_ids = [info['package_id'] for info in pkgs if 'package_id' in info]
|
pkg_ids = [info['package_id'] for info in pkgs if 'package_id' in info]
|
||||||
if pkg_ids:
|
if pkg_ids:
|
||||||
|
|
Loading…
Reference in New Issue