improved version script
This commit is contained in:
parent
113c40c243
commit
0c2c12d536
@ -8,6 +8,8 @@ BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
|||||||
PLUGINS_DIRECTORY = os.path.join(BASE_DIR, 'recipes', 'plugins')
|
PLUGINS_DIRECTORY = os.path.join(BASE_DIR, 'recipes', 'plugins')
|
||||||
|
|
||||||
version_info = []
|
version_info = []
|
||||||
|
tandoor_tag = ''
|
||||||
|
tandoor_hash = ''
|
||||||
try:
|
try:
|
||||||
r = subprocess.check_output(['git', 'show', '-s'], cwd=BASE_DIR).decode()
|
r = subprocess.check_output(['git', 'show', '-s'], cwd=BASE_DIR).decode()
|
||||||
tandoor_branch = subprocess.check_output(['git', 'rev-parse', '--abbrev-ref', 'HEAD'], cwd=BASE_DIR).decode()
|
tandoor_branch = subprocess.check_output(['git', 'rev-parse', '--abbrev-ref', 'HEAD'], cwd=BASE_DIR).decode()
|
||||||
@ -15,7 +17,7 @@ try:
|
|||||||
try:
|
try:
|
||||||
tandoor_tag = subprocess.check_output(['git', 'describe', '--exact-match', tandoor_hash], cwd=os.path.join(BASE_DIR, 'recipes', 'plugins', d)).decode().replace('\n', '')
|
tandoor_tag = subprocess.check_output(['git', 'describe', '--exact-match', tandoor_hash], cwd=os.path.join(BASE_DIR, 'recipes', 'plugins', d)).decode().replace('\n', '')
|
||||||
except:
|
except:
|
||||||
tandoor_tag = ''
|
pass
|
||||||
|
|
||||||
version_info.append({
|
version_info.append({
|
||||||
'name': 'Tandoor ',
|
'name': 'Tandoor ',
|
||||||
|
Loading…
Reference in New Issue
Block a user