From 0341bcdf8f8c5ed0c162a9d4fedcf175f9df6b1a Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 4 Aug 2022 17:14:42 +0200 Subject: [PATCH] list_builder: gotta load manifest.toml, not json, for app v2 --- list_builder.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/list_builder.py b/list_builder.py index 67073701..2a4288be 100755 --- a/list_builder.py +++ b/list_builder.py @@ -5,10 +5,12 @@ import sys import os import re import json +import toml import subprocess import yaml import time +from collections import OrderedDict from tools.packaging_v2.convert_v1_manifest_to_v2_for_catalog import convert_v1_manifest_to_v2_for_catalog now = time.time() @@ -297,7 +299,11 @@ def build_app_dict(app, infos): timestamp = int(timestamp) # Build the dict with all the infos - manifest = json.load(open(this_app_cache + "/manifest.json")) + if os.path.exists(open(this_app_cache + "/manifest.toml")): + manifest = toml.load(open(this_app_cache + "/manifest.toml", _dict=OrderedDict)) + else: + manifest = json.load(open(this_app_cache + "/manifest.json")) + return { "id": manifest["id"], "git": {