Commit Graph

3 Commits

Author SHA1 Message Date
Eric Fahlgren
3ddd92da0f scripts: make-index-json: rework for old Python versions
The current code uses functions and features only found in newer
versions of Python, so rework to allow use on systems only supporting
older Python.  Tested on Python 3.8 (released Oct 2019), but should
work on 3.7 also.

Suggested-by: Chen Minqiang <ptpt52@gmail.com>
Signed-off-by: Eric Fahlgren <ericfahlgren@gmail.com>
(cherry picked from commit 0c7d564b1dc2a1a237bc8ea125ec1b22f606cdbc)
2025-06-25 20:16:25 +08:00
Tianling Shen
469ca4c30e make-index-json: fix compatibility with python3 < 3.9
'str.removesuffix' is only available in Python 3.9+.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit f4e1608464d51a46d28e5b79fdffd9af1d04f26e)
2025-06-19 14:41:04 +08:00
Eric Fahlgren
c99d356747 package: rework contents of package index.json
Rework the generation of the index.json version of the package
indexes to match the original intent (i.e., for use by the ASU
server and other downstream projects).  The current file contains
package names that have ABI versioning, making them unusable by ASU,
so we now remove the ABI suffixes.

Also adds a 'version' field to the json, so downstream utilities
can detect the new semantics of the package name fields.

Links: 218ce40cd7
Signed-off-by: Eric Fahlgren <ericfahlgren@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19051
(cherry picked from commit 2b0b16f1d1571b23425b2d7ab5dc3816e2ceec12)
Link: https://github.com/openwrt/openwrt/pull/19097
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-06-11 19:12:09 +02:00