update.py: Exit if there is no tag to add
This prevent the script from locking at line 578 because UpdateIds will never send an event to wake up the threads (line 91) if there is no tag to add. Also change len(tag_buf) to num_tags in line 548, no need to compute the length again as we already have it. Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
This commit is contained in:
parent
33c177d809
commit
9c45c0fae1
1 changed files with 4 additions and 1 deletions
|
|
@ -545,7 +545,10 @@ for tag in scriptLines('list-tags'):
|
|||
num_tags = len(tag_buf)
|
||||
project = lib.currentProject()
|
||||
|
||||
print(project + ' - found ' + str(len(tag_buf)) + ' new tags')
|
||||
print(project + ' - found ' + str(num_tags) + ' new tags')
|
||||
|
||||
if not num_tags:
|
||||
exit(0)
|
||||
|
||||
threads_list.append(UpdateIds(tag_buf))
|
||||
threads_list.append(UpdateVersions(tag_buf))
|
||||
|
|
|
|||
Loading…
Reference in a new issue