Commit 71b35e16 authored by Vincent A's avatar Vincent A

core/repositories: progress should go from 20% to 30%, not the reverse

parent f7e79a14
Pipeline #2836 passed with stages
in 12 minutes and 25 seconds
......@@ -711,13 +711,13 @@ class Repositories(object):
module_dir = os.path.join(self.modules_dir, module.name)
installed = self.versions.get(module.name)
if installed is None or not os.path.exists(module_dir):
progress.progress(0.3, 'Module %s is not installed yet' % module.name)
progress.progress(0.2, 'Module %s is not installed yet' % module.name)
elif module.version > installed:
progress.progress(0.3, 'A new version of %s is available' % module.name)
progress.progress(0.2, 'A new version of %s is available' % module.name)
else:
raise ModuleInstallError('The latest version of %s is already installed' % module.name)
progress.progress(0.2, 'Downloading module...')
progress.progress(0.3, 'Downloading module...')
try:
tardata = self.browser.open(module.url).content
except BrowserHTTPError as e:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment