mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
port: Lock version number
When writing the subproject file, set the tag to the current version if known.
This commit is contained in:
parent
90ac3e3ad5
commit
278c83b762
1 changed files with 5 additions and 2 deletions
|
@ -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]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue