]> glassweightruler.freedombox.rocks Git - waydroid.git/commitdiff
tools: Fix device names with spaces in initializer
authorAlfred Neumayer <dev.beidl@gmail.com>
Thu, 10 Mar 2022 09:46:41 +0000 (10:46 +0100)
committerErfan Abdi <erfangplus@gmail.com>
Sat, 7 May 2022 12:57:01 +0000 (17:27 +0430)
Don't try to fetch from an URL with a space inside.

tools/actions/initializer.py

index f8cce6e8f3cb13fb3da396129888619da4613370..4a80bb998b4cca1802a54e637fec7fee50059517 100644 (file)
@@ -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