Do not call update-fullfiletimelist if there's no modules updated

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
Patrick Uiterwijk 2017-10-27 17:46:41 +02:00
parent e4022c656e
commit f06165241b

View file

@ -103,6 +103,9 @@ def run_command(cmd):
def update_fullfilelist(modules):
if not modules:
logger.info('No modulese to update')
return
cmd = ['/usr/local/bin/update-fullfiletimelist', '-l',
'/tmp/update-fullfiletimelist.lock', '-t', '/pub']
cmd.extend(modules)