From c1e4142a401509a52c76d1079cfd0fab4e204c62 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Tue, 31 Jan 2023 12:02:01 -0500 Subject: [PATCH] update_manager: add arch filter Signed-off-by: Eric Callahan --- moonraker/components/update_manager/update_manager.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/moonraker/components/update_manager/update_manager.py b/moonraker/components/update_manager/update_manager.py index d417c38..005c7fa 100644 --- a/moonraker/components/update_manager/update_manager.py +++ b/moonraker/components/update_manager/update_manager.py @@ -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: