File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ function os::build::rpm::get_nvra_vars() {
19
19
OS_RPM_NAME=" ${OS_RPM_NAME:- " origin" } "
20
20
OS_RPM_ARCHITECTURE=" $( uname -i) "
21
21
22
- # we can extract the pacakge version from the build version
22
+ # we can extract the package version from the build version
23
23
os::build::get_version_vars
24
24
if [[ " ${OS_GIT_VERSION} " =~ ^v([0-9](\. [0-9]+)* )(.* ) ]]; then
25
25
OS_RPM_VERSION=" ${BASH_REMATCH[1]} "
@@ -42,6 +42,10 @@ function os::build::rpm::get_nvra_vars() {
42
42
if [[ " ${metadata} " =~ ^\+ ([a-z0-9]{7})-([0-9]+)(-dirty)? $ ]]; then
43
43
build_sha=" ${BASH_REMATCH[1]} "
44
44
build_num=" ${BASH_REMATCH[2]} "
45
+ # this is an exact release build
46
+ elif [[ " ${metadata} " =~ ^\+ ([a-z0-9]{7})(-dirty)? $ ]]; then
47
+ build_sha=" ${BASH_REMATCH[1]} "
48
+ build_num=" 0"
45
49
else
46
50
os::log::fatal " Malformed git version metadata: ${metadata} "
47
51
fi
You can’t perform that action at this time.
0 commit comments