From a054f7f210f545beeedf5389f7c669bee2507e65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Wed, 25 May 2022 17:30:06 +0200 Subject: [PATCH] network: Fix metadata.xml results when old version is present Apply metadata.xml URL check results to the newest package version rather than the oldest, in order to fix displaying them when multiple package versions are available. Since the result objects are subclasses of FilteredVersionResult, they are filtered out when they do not apply to the newest version. Closes: https://github.com/pkgcore/pkgcheck/issues/385 --- src/pkgcheck/checks/network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkgcheck/checks/network.py b/src/pkgcheck/checks/network.py index 8fca4b056..dc5e9cef8 100644 --- a/src/pkgcheck/checks/network.py +++ b/src/pkgcheck/checks/network.py @@ -296,4 +296,4 @@ def _get_urls(self, pkg): yield f'metadata.xml: {element}', url def schedule(self, pkgs, *args, **kwargs): - super().schedule(pkgs[0], *args, **kwargs) + super().schedule(pkgs[-1], *args, **kwargs)