best-caf-kernel: return 0 if no tags are found
* ´git tag -l <tag>´ returns "" if no tags are found Change-Id: Ia79db1c8978579efe56de26968124888463ae7ca
This commit is contained in:
committed by
Michael Bestas
parent
dcfc98e109
commit
349e17ad16
@@ -30,6 +30,9 @@ def run_subprocess(cmd):
|
||||
def get_tags(tag_name):
|
||||
cmd = "git tag -l %s" % tag_name
|
||||
comm = run_subprocess(cmd)
|
||||
if not str(comm[0]):
|
||||
return 0
|
||||
|
||||
return comm[0].strip("\n").split("\n")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user