update_manager: rebuild the enviroment if a new env version is detected

This should be done even if new dependencies are not required.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine 2020-12-22 18:10:58 -05:00
parent 9f9a05cabb
commit 0f62b283bd
1 changed files with 2 additions and 0 deletions

View File

@ -330,6 +330,8 @@ class GitUpdater:
if update_deps:
await self._install_packages()
await self._update_virtualenv(need_env_rebuild)
elif need_env_rebuild:
await self._update_virtualenv(True)
# Refresh local repo state
await self._check_local_version()
if self.name == "moonraker":