port: Lock version number

When writing the subproject file, set the tag to the current version if
known.
This commit is contained in:
James Westman 2022-06-03 19:02:13 -05:00
parent 90ac3e3ad5
commit 278c83b762
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6

View file

@ -118,11 +118,14 @@ def step1():
except: except:
pass pass
from .main import VERSION
VERSION = "main" if VERSION == "uninstalled" else "v" + VERSION
with open("subprojects/blueprint-compiler.wrap", "w") as wrap: with open("subprojects/blueprint-compiler.wrap", "w") as wrap:
wrap.write("""[wrap-git] wrap.write(f"""[wrap-git]
directory = blueprint-compiler directory = blueprint-compiler
url = https://gitlab.gnome.org/jwestman/blueprint-compiler.git url = https://gitlab.gnome.org/jwestman/blueprint-compiler.git
revision = main revision = {VERSION}
depth = 1 depth = 1
[provide] [provide]