From ae97d7798d60b17afe0f3daaabfe355fa6894b4a Mon Sep 17 00:00:00 2001 From: Peter Sabaini Date: Thu, 27 Jun 2024 20:44:51 +0200 Subject: [PATCH] Fix: charmcraft3 platforms --- _update-charmcraft.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/_update-charmcraft.py b/_update-charmcraft.py index 3354e62..86238c3 100755 --- a/_update-charmcraft.py +++ b/_update-charmcraft.py @@ -87,7 +87,10 @@ def cc3ify(args: argparse.Namespace, charmcraft: Any) -> Any: charmcraft['platforms'] = {} platforms = args.platforms.split(',') for platform in platforms: - charmcraft['platforms'][platform] = "" + charmcraft['platforms'][platform] = { + "build-on": platform, + "build-for": platform, + } return charmcraft