This repository was archived by the owner on Jan 28, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -43,10 +43,13 @@ isEmpty(INTG_LIB_PATH) {
43
43
unix {
44
44
INTG_LIB_VERSION = $$system (cat $$PWD /dependencies.cfg | awk '/ ^integrations.library:/ $$system_quote (" {print $2}" )')
45
45
INTG_GIT_VERSION = " $$system(cd $$INTG_LIB_PATH && git describe --match " v [0-9 ]*" --tags HEAD --always)"
46
- message ("Required integrations.library version: $$INTG_LIB_VERSION Local version: $$INTG_GIT_VERSION" )
46
+ INTG_GIT_BRANCH = " $$system(cd $$INTG_LIB_PATH && git rev-parse --abbrev-ref HEAD)"
47
+ message ("Required integrations.library version: $$INTG_LIB_VERSION Local version: $$INTG_GIT_VERSION ($$INTG_GIT_BRANCH )")
47
48
# this is a simple check but qmake only provides limited tests and 'versionAtLeast' doesn't work with 'v' prefix.
48
- !contains (INTG_GIT_VERSION, $$re_escape($${INTG_LIB_VERSION} ).*) {
49
- error ("Invalid integrations.library version: \"$$INTG_GIT_VERSION\". Please check out required version \"$$INTG_LIB_VERSION\"" )
49
+ !contains (INTG_GIT_VERSION, $$re_escape($${INTG_LIB_VERSION} ).*)) {
50
+ !equals(INTG_GIT_BRANCH, $$INTG_LIB_VERSION) {
51
+ error ("Invalid integrations.library version: \"$$INTG_GIT_VERSION\". Please check out required version \"$$INTG_LIB_VERSION\"" )
52
+ }
50
53
}
51
54
}
52
55
You can’t perform that action at this time.
0 commit comments