diff options
Diffstat (limited to 'bin/update/tools.py')
-rw-r--r-- | bin/update/tools.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/update/tools.py b/bin/update/tools.py index 87f67fa97f4e..5d0871b299af 100644 --- a/bin/update/tools.py +++ b/bin/update/tools.py @@ -34,10 +34,11 @@ def get_hash(file_path): sha512.update(data) return sha512.hexdigest() -def get_file_info(mar_file): +def get_file_info(mar_file, url): filesize = os.path.getsize(mar_file) data = { 'hash' : get_hash(mar_file), 'hashFunction' : 'sha512', - 'size' : filesize } + 'size' : filesize, + 'url' : url + os.path.basename(mar_file)} return data |