From: Alfred Neumayer Date: Thu, 10 Mar 2022 09:46:41 +0000 (+0100) Subject: tools: Fix device names with spaces in initializer X-Git-Tag: 1.3.0~36 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/commitdiff_plain/eebdcec852186e21a4c44ab383380e3a0453464a tools: Fix device names with spaces in initializer Don't try to fetch from an URL with a space inside. --- diff --git a/tools/actions/initializer.py b/tools/actions/initializer.py index f8cce6e..4a80bb9 100644 --- a/tools/actions/initializer.py +++ b/tools/actions/initializer.py @@ -56,7 +56,7 @@ def setup_config(args): args.vendor_type = None for vendor in [device_codename, get_vendor_type(args)]: vendor_ota = args.vendor_channel + "/waydroid_" + \ - args.arch + "/" + vendor + ".json" + args.arch + "/" + vendor.replace(" ", "_") + ".json" vendor_request = helpers.http.retrieve(vendor_ota) if vendor_request[0] == 200: args.vendor_type = vendor