From f18c8b7a2d8e7373624dd9f630c86761f3b37a84 Mon Sep 17 00:00:00 2001 From: James Westman Date: Fri, 3 Jun 2022 19:02:13 -0500 Subject: [PATCH] port: Lock version number When writing the subproject file, set the tag to the current version if known. --- blueprintcompiler/interactive_port.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/blueprintcompiler/interactive_port.py b/blueprintcompiler/interactive_port.py index 970f0fe..ff551df 100644 --- a/blueprintcompiler/interactive_port.py +++ b/blueprintcompiler/interactive_port.py @@ -118,11 +118,14 @@ def step1(): except: pass + from .main import VERSION + VERSION = "main" if VERSION == "uninstalled" else "v" + VERSION + with open("subprojects/blueprint-compiler.wrap", "w") as wrap: - wrap.write("""[wrap-git] + wrap.write(f"""[wrap-git] directory = blueprint-compiler url = https://gitlab.gnome.org/jwestman/blueprint-compiler.git -revision = main +revision = {VERSION} depth = 1 [provide]