diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2023-11-03 08:26:37 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-11-09 17:33:03 +0000 |
commit | 407afec92a959ded5339bbb217f185bc0b480de8 (patch) | |
tree | 1cea7cdc5250f9860a23dda27e38a07fcba0bdf6 | |
parent | a607f435de1a04fed655a0f25d5a74724ba82ce0 (diff) | |
download | poky-407afec92a959ded5339bbb217f185bc0b480de8.tar.gz |
bitbake: bitbake-hashserver: Allow anonymous permissions to be space separated
Space separation is more natural when setting the value from an
environment variable, so allow that here for convenience.
(Bitbake rev: 07eb9176f8a7449c1d2cbfff072fa0873e97a336)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | bitbake/bin/bitbake-hashserv | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/bin/bitbake-hashserv b/bitbake/bin/bitbake-hashserv index 1085d0584e..c560b3e58a 100755 --- a/bitbake/bin/bitbake-hashserv +++ b/bitbake/bin/bitbake-hashserv | |||
@@ -127,7 +127,10 @@ websocket, as in "wss://SERVER:PORT" | |||
127 | logger.addHandler(console) | 127 | logger.addHandler(console) |
128 | 128 | ||
129 | read_only = (os.environ.get("HASHSERVER_READ_ONLY", "0") == "1") or args.read_only | 129 | read_only = (os.environ.get("HASHSERVER_READ_ONLY", "0") == "1") or args.read_only |
130 | anon_perms = args.anon_perms.split(",") | 130 | if "," in args.anon_perms: |
131 | anon_perms = args.anon_perms.split(",") | ||
132 | else: | ||
133 | anon_perms = args.anon_perms.split() | ||
131 | 134 | ||
132 | server = hashserv.create_server( | 135 | server = hashserv.create_server( |
133 | args.bind, | 136 | args.bind, |