update.py: fix division by zero in progress report

- Required when there are no new tags

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
This commit is contained in:
Michael Opdenacker 2019-10-04 15:13:52 +02:00
parent 3c78f8a0fc
commit f2b40c5f7e

View file

@ -138,7 +138,7 @@ numTags = len(tagBuf)
tagCount = 0 tagCount = 0
project = lib.currentProject () project = lib.currentProject ()
progress ('found ' + str(len(tagBuf)) + ' new tags') print (project + ' - found ' + str(len(tagBuf)) + ' new tags')
for tag in tagBuf: for tag in tagBuf:
tagCount +=1 tagCount +=1