1
0
Fork 0

Packaging v2: add a 'fund' key in the upstream section

This commit is contained in:
Alexandre Aubin 2022-08-14 02:15:40 +02:00
parent e752ecbbbc
commit 5aaa60e92e

View file

@ -27,6 +27,7 @@ def _convert_v1_manifest_to_v2(app_path):
manifest["upstream"]["website"] = manifest["url"]
manifest["upstream"]["cpe"] = "???"
manifest["upstream"]["fund"] = "???"
manifest["integration"] = {
"yunohost": manifest.get("requirements", {}).get("yunohost"),
@ -161,6 +162,7 @@ def _dump_v2_manifest_as_toml(manifest):
for key, value in manifest["upstream"].items():
upstream[key] = value
upstream["cpe"].comment("FIXME: optional but recommended if relevant, this is meant to contain the Common Platform Enumeration, which is sort of a standard id for applications defined by the NIST. In particular, Yunohost may use this is in the future to easily track CVE (=security reports) related to apps. The CPE may be obtained by searching here: https://nvd.nist.gov/products/cpe/search. For example, for Nextcloud, the CPE is 'cpe:2.3:a:nextcloud:nextcloud' (no need to include the version number)")
upstream["fund"].comment("FIXME: optional but recommended (or remove if irrelevant / not applicable). This is meant to be an URL where people can financially support this app, especially when its development is based on volunteers and/or financed by its community. YunoHost may later advertise it in the webadmin.")
toml_manifest["upstream"] = upstream
integration = table()