Commit 5c9cd24a authored by echel0n's avatar echel0n

Added notification error alert for requirements installation during version updating

parent 80874521
# Changelog
- * b6bd78f - 2018-12-18: Pre-Release v9.4.56.dev2
- * 3e9f813 - 2018-12-18: Added notification error alert for requirements installation during version updating
- * 8087452 - 2018-12-18: Pre-Release v9.4.56.dev2
- * c86e064 - 2018-12-18: Added extra debug logging to version updater.
- * 65c449e - 2018-12-17: Pre-Release v9.4.56.dev1
- * cda49c8 - 2018-12-17: Added code back to carry over notifications when a page refresh occurs
......
......@@ -378,7 +378,7 @@ class UpdateManager(object):
def install_requirements(self):
for req_file in ['requirements.txt', sickrage.REQS_FILE]:
output, __, exit_status = self._pip_cmd(self._pip_path,
'install --no-cache-dir -r {}'.format(req_file))
'install --no-cache-dir -r {}'.format(req_file))
if exit_status != 0:
__, __, exit_status = self._pip_cmd(self._pip_path,
......@@ -387,6 +387,9 @@ class UpdateManager(object):
if exit_status == 0:
return True
sickrage.app.alerts.error(_('Updater'),
_('Failed to update requirements'))
sickrage.app.log.warning('Unable to update requirements using {req_file}'.format(**{
'req_file': sickrage.REQS_FILE
}))
......
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