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:
Timi Rautamäki
2022-04-14 07:17:05 +00:00
committed by Michael Bestas
parent dcfc98e109
commit 349e17ad16

View File

@@ -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")