fix debug messages
This commit is contained in:
parent
e654d391fd
commit
4ed0eee032
1 changed files with 2 additions and 2 deletions
|
@ -100,10 +100,10 @@ def download():
|
||||||
base_url = settings.server.get('release_url').rsplit('/', 1)[0]
|
base_url = settings.server.get('release_url').rsplit('/', 1)[0]
|
||||||
url = '/'.join([base_url, release['modules'][module]['name']])
|
url = '/'.join([base_url, release['modules'][module]['name']])
|
||||||
if not os.path.exists(module_tar):
|
if not os.path.exists(module_tar):
|
||||||
logger.debug('download', os.path.basename(module_tar))
|
logger.debug('download %s', os.path.basename(module_tar))
|
||||||
get(url, module_tar)
|
get(url, module_tar)
|
||||||
if ox.sha1sum(module_tar) != release['modules'][module]['sha1']:
|
if ox.sha1sum(module_tar) != release['modules'][module]['sha1']:
|
||||||
logger.debug('invalid checksum', os.path.basename(module_tar))
|
logger.debug('invalid checksum %s', os.path.basename(module_tar))
|
||||||
os.unlink(module_tar)
|
os.unlink(module_tar)
|
||||||
return False
|
return False
|
||||||
current_files.add(os.path.basename(module_tar))
|
current_files.add(os.path.basename(module_tar))
|
||||||
|
|
Loading…
Reference in a new issue