X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/blobdiff_plain/ef1f12c89c77bb27334299b5d7abd25b36614892..cca8af2d7d3494d887d9655f8e78244b5a2ca513:/tools/actions/upgrader.py diff --git a/tools/actions/upgrader.py b/tools/actions/upgrader.py index 2acf464..b788f50 100644 --- a/tools/actions/upgrader.py +++ b/tools/actions/upgrader.py @@ -25,11 +25,10 @@ def upgrade(args): helpers.images.umount_rootfs(args) helpers.drivers.loadBinderNodes(args) if not args.offline: - preinstalled_images_path = tools.config.defaults["preinstalled_images_path"] - if args.images_path != preinstalled_images_path: + if args.images_path not in tools.config.defaults["preinstalled_images_paths"]: helpers.images.get(args) else: - logging.info("Upgrade refused because a pre-installed image is detected at {}.".format(preinstalled_images_path)) + logging.info("Upgrade refused because a pre-installed image is detected at {}.".format(args.images_path)) helpers.lxc.setup_host_perms(args) helpers.lxc.set_lxc_config(args) helpers.lxc.make_base_props(args)