Skip to content

Commit 8da73ac

Browse files
committed
Adding new commit vars to RPM spec build
1 parent a70f279 commit 8da73ac

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.tito/lib/origin/common.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,13 @@ def get_os_git_vars():
3131
shell utilities. The git tree state is spoofed.
3232
"""
3333
git_vars = {}
34-
for var in ["COMMIT", "VERSION", "MAJOR", "MINOR", "CATALOG_VERSION"]:
35-
var_name = "OS_GIT_{}".format(var)
34+
for var_name in ["OS_GIT_COMMIT", "OS_GIT_VERSION", "OS_GIT_MAJOR", "OS_GIT_MINOR",
35+
"OS_GIT_CATALOG_VERSION",
36+
"ETCD_GIT_VERSION", "ETCD_GIT_COMMIT",
37+
"KUBE_GIT_VERSION", "KUBE_GIT_COMMIT"]:
3638
git_vars[var_name] = run_command(
3739
"bash -c 'source ./hack/lib/init.sh; os::build::version::git_vars; echo ${}'".format(var_name)
3840
)
39-
4041
# we hard-code this to a clean state as tito will have dirtied up the tree
4142
# but that will not have changed any of the source used for the product
4243
# release and we therefore don't want that reflected in the release version

0 commit comments

Comments
 (0)