Skip to content

Commit 91a7a2f

Browse files
committed
network: Remove suboptimal result filtering
Remove the network check result filtering that discarded results from non-newest versions. Although the results were filtered, the checks — and the resulting network requests — were performed for all versions anyway, so this solution was really wasteful.
1 parent 051a298 commit 91a7a2f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/pkgcheck/checks/network.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from . import NetworkCheck
1313

1414

15-
class _UrlResult(results.FilteredVersionResult, results.Warning):
15+
class _UrlResult(results.VersionResult, results.Warning):
1616
"""Generic result for a URL with some type of failed status."""
1717

1818
def __init__(self, attr, url, message, **kwargs):
@@ -42,7 +42,7 @@ def desc(self):
4242
return f'{self.attr}: SSL cert error: {self.message}: {self.url}'
4343

4444

45-
class _UpdatedUrlResult(results.FilteredVersionResult, results.Warning):
45+
class _UpdatedUrlResult(results.VersionResult, results.Warning):
4646
"""Generic result for a URL that should be updated to an alternative."""
4747

4848
message = None

0 commit comments

Comments
 (0)