Thread (2 messages) 2 messages, 2 authors, 2021-09-01

[Buildroot] [PATCH] support/scripts/pkg-stats: prefer stable version from release-monitoring.org

From: Francois Perrad <hidden>
Date: 2021-08-31 17:00:54
Subsystem: the rest · Maintainer: Linus Torvalds

for example with libpng: 1.6.37 instead of 1.7.0beta89

Signed-off-by: Francois Perrad <redacted>
---
 support/scripts/pkg-stats | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats
index cc91d1316..773c90ddd 100755
--- a/support/scripts/pkg-stats
+++ b/support/scripts/pkg-stats
@@ -484,7 +484,7 @@ async def check_package_get_latest_version_by_distro(session, pkg, retry=True):
                 return False
 
             data = await resp.json()
-            version = data['version'] if 'version' in data else None
+            version = data['stable_versions'][0] if 'stable_versions' in data else None
             check_package_latest_version_set_status(pkg,
                                                     RM_API_STATUS_FOUND_BY_DISTRO,
                                                     version,
-- 
2.30.2

_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help