only update new modules
This commit is contained in:
parent
81e29d1fc2
commit
0ff98f616b
1 changed files with 13 additions and 12 deletions
|
@ -63,6 +63,7 @@ def update():
|
||||||
fd.write(release_data)
|
fd.write(release_data)
|
||||||
os.chdir(settings.base_dir)
|
os.chdir(settings.base_dir)
|
||||||
for module in release['modules']:
|
for module in release['modules']:
|
||||||
|
if release['modules'][module]['version'] > settings.release['modules'][module]['version']:
|
||||||
package_tar = os.path.join(settings.updates_path, release['modules'][module]['name'])
|
package_tar = os.path.join(settings.updates_path, release['modules'][module]['name'])
|
||||||
url = RELEASE_URL.replace('release.json', package_tar)
|
url = RELEASE_URL.replace('release.json', package_tar)
|
||||||
download(url, package_tar)
|
download(url, package_tar)
|
||||||
|
|
Loading…
Reference in a new issue