From: Alessandro Astone Date: Sat, 9 Jul 2022 16:53:20 +0000 (+0200) Subject: init: Always redownload the image when changing parameters X-Git-Tag: 1.3.0~20 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/commitdiff_plain/58e50a746fd6b0053af5a239de4517613650b1d1?ds=sidebyside init: Always redownload the image when changing parameters When changing system_type, for example. Timestamps only make sense when compared to the same ota channel. --- diff --git a/tools/actions/initializer.py b/tools/actions/initializer.py index b7124d4..158f6bc 100644 --- a/tools/actions/initializer.py +++ b/tools/actions/initializer.py @@ -73,6 +73,11 @@ def setup_config(args): args.vendor_ota = "None" args.vendor_type = get_vendor_type(args) + if args.system_ota != cfg["waydroid"].get("system_ota"): + cfg["waydroid"]["system_datetime"] = tools.config.defaults["system_datetime"] + if args.vendor_ota != cfg["waydroid"].get("vendor_ota"): + cfg["waydroid"]["vendor_datetime"] = tools.config.defaults["vendor_datetime"] + cfg["waydroid"]["vendor_type"] = args.vendor_type cfg["waydroid"]["system_ota"] = args.system_ota cfg["waydroid"]["vendor_ota"] = args.vendor_ota