diff options
| author | Michael Opdenacker <michael.opdenacker@bootlin.com> | 2024-05-11 16:31:34 +0530 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-05-21 14:23:43 +0100 |
| commit | ae0725577dfcfbe3a439c6bebd114f677e4b5081 (patch) | |
| tree | be013b499e2114e84abc4f127582867543dc9330 /bitbake/lib/prserv/serv.py | |
| parent | 3be2201de538a484e94ba91356a2fbe121a53308 (diff) | |
| download | poky-ae0725577dfcfbe3a439c6bebd114f677e4b5081.tar.gz | |
bitbake: prserv: import simplification
Simplify the importone() hook:
- to make it independent from the "history" mode which is
client specific.
- remove the "history" parameter
- we want all values to be imported for binary
reproducibility purposes.
- using the store_value() function (which warrants
you don't save the same value twice and doesn't write
when you're using a read-only server) is enough.
(Bitbake rev: 000704a53470ab1ead840403b5531f22ebf1fd49)
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Cc: Joshua Watt <JPEWhacker@gmail.com>
Cc: Tim Orling <ticotimo@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/prserv/serv.py')
| -rw-r--r-- | bitbake/lib/prserv/serv.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bitbake/lib/prserv/serv.py b/bitbake/lib/prserv/serv.py index 3992056f88..e175886308 100644 --- a/bitbake/lib/prserv/serv.py +++ b/bitbake/lib/prserv/serv.py | |||
| @@ -179,9 +179,8 @@ class PRServerClient(bb.asyncrpc.AsyncServerConnection): | |||
| 179 | pkgarch = request["pkgarch"] | 179 | pkgarch = request["pkgarch"] |
| 180 | checksum = request["checksum"] | 180 | checksum = request["checksum"] |
| 181 | value = request["value"] | 181 | value = request["value"] |
| 182 | history = request["history"] | ||
| 183 | 182 | ||
| 184 | value = self.server.table.importone(version, pkgarch, checksum, value, history) | 183 | value = self.server.table.importone(version, pkgarch, checksum, value) |
| 185 | if value is not None: | 184 | if value is not None: |
| 186 | response = {"value": value} | 185 | response = {"value": value} |
| 187 | 186 | ||
