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
65691dfac6
commit
f18c8b7a2d
1 changed files with 5 additions and 2 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue