Skip to content

Commit

Permalink
tools: Fix device names with spaces in initializer
Browse files Browse the repository at this point in the history
Don't try to fetch from an URL with a space inside.
  • Loading branch information
fredldotme authored and erfanoabdi committed May 7, 2022
1 parent 02d2b11 commit eebdcec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/actions/initializer.py
Expand Up @@ -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
Expand Down

0 comments on commit eebdcec

Please sign in to comment.