upgrades: Skip enable-auto in develop mode

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
James Valleroy 2020-06-17 11:01:32 -04:00 committed by Sunil Mohan Adapa
parent cf7ff2d1b6
commit fea7956527
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -100,7 +100,7 @@ def setup(helper, old_version=None):
helper.install(managed_packages)
# Enable automatic upgrades but only on first install
if not old_version:
if not old_version and not cfg.develop:
helper.call('post', actions.superuser_run, 'upgrades', ['enable-auto'])
# Update apt preferences whenever on first install and on version