diff --git a/packaging_v2/convert_app_to_packaging_v2.py b/packaging_v2/convert_app_to_packaging_v2.py index 850b9b4..77b5a6e 100644 --- a/packaging_v2/convert_app_to_packaging_v2.py +++ b/packaging_v2/convert_app_to_packaging_v2.py @@ -217,6 +217,10 @@ def _dump_v2_manifest_as_toml(manifest): toml_manifest_dump = toml_manifest_dump.replace('"ram.runtime"', "ram.runtime") toml_manifest_dump = toml_manifest_dump.replace('"main.url"', "main.url") toml_manifest_dump = toml_manifest_dump.replace('"main.default"', "main.default") + if "ports" in manifest["resources"]: + for port_thing in manifest["resources"]["ports"].keys(): + toml_manifest_dump = toml_manifest_dump.replace(f'"{port_thing}"', f"{port_thing}") + return toml_manifest_dump