venv rebuild: migration should have an empty disclaimer when in auto mode

This commit is contained in:
Alexandre Aubin 2022-08-13 18:41:52 +02:00
parent 31aacb3361
commit d2a6dcd41a

View file

@ -98,6 +98,10 @@ class MyMigration(Migration):
if not self.is_pending():
return None
# Disclaimer should be empty if in auto, otherwise it excepts the --accept-disclaimer option during debian postinst
if self.mode == "auto":
return None
ignored_apps = []
rebuild_apps = []
@ -133,6 +137,9 @@ class MyMigration(Migration):
def run(self):
if self.mode == "auto":
return
venvs = _get_all_venvs("/opt/") + _get_all_venvs("/var/www/")
for venv in venvs: