diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2023-10-06 09:36:43 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-10-06 22:44:29 +0100 |
commit | b8d6abfeb4a0765727a62b3d8d83276335c7c7d6 (patch) | |
tree | 355318c915c0cacc747af075064fd6f3bfcec0c1 /lib/hashserv/client.py | |
parent | a778b99e6a2a1a1e1b7eb26d48313fadcd34de54 (diff) | |
download | bitbake-b8d6abfeb4a0765727a62b3d8d83276335c7c7d6.tar.gz |
hashserv: Extend get_outhash API to optionally include unihash
Extends the get_outhash API with a flag indicating whether to include
the unihash in the output. This is means that the query doesn't require
the unihash entry to be present to return a result
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/hashserv/client.py')
-rw-r--r-- | lib/hashserv/client.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hashserv/client.py b/lib/hashserv/client.py index 7446e4c9f..eeafeabda 100644 --- a/lib/hashserv/client.py +++ b/lib/hashserv/client.py @@ -83,10 +83,10 @@ class AsyncClient(bb.asyncrpc.AsyncClient): {"get": {"taskhash": taskhash, "method": method, "all": all_properties}} ) - async def get_outhash(self, method, outhash, taskhash): + async def get_outhash(self, method, outhash, taskhash, with_unihash=True): await self._set_mode(self.MODE_NORMAL) return await self.send_message( - {"get-outhash": {"outhash": outhash, "taskhash": taskhash, "method": method}} + {"get-outhash": {"outhash": outhash, "taskhash": taskhash, "method": method, "with_unihash": with_unihash}} ) async def get_stats(self): |