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 65691dfac6
commit f18c8b7a2d
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6

View file

@ -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]