Skip to contentSkip to conversation

prserv: add support for an "upstream" server

PATCH Michael Opdenacker 1 participant 1 message Mar 29, 2024 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 23 lines · Michael Opdenacker via lists.openembedded.org

From: Michael Opdenacker <[email protected]>

This makes it possible to customize an "upstream" distribution by modifying local packages. If the "upstream" package bears revision "x", the local one will have revision "x.y", this having priority over the upstream one.

Take advantage of this work to clean-up and update the prserv code too.

Michael Opdenacker (12):
prserv: simplify the PRServerClient() interface
prserv: use double quotes by default
bitbake-prserv: replace deprecated optparse by argparse
prserv: use self.logger instead of logger directly
asyncrpc: include parse_address from hashserv
prserv: capitalization and spacing improvements
prserv: fix read_only test
prserv: add extra requests
prserv: remove redundant exception handler
prserv: correct error message
prserv: remove unnecessary code
prserv: add "upstream" server support

Quoted 8 lines
  bin/bitbake-prserv        |  99 ++++++++++++-----
  lib/bb/asyncrpc/client.py |  23 ++++
  lib/hashserv/__init__.py  |  27 +----
  lib/prserv/__init__.py    |  21 +++-
  lib/prserv/client.py      |  42 +++++--
  lib/prserv/db.py          | 176 ++++++++++++++++++++---------
  lib/prserv/serv.py        | 228 ++++++++++++++++++++++++++++----------
  7 files changed, 434 insertions(+), 182 deletions(-)

Note that this code has a remaining issue that appears sometimes.

Even though the revision stored in the database was indeed "0.3", I eventually got this package name:
tmp/deploy/ipk/core2-64/hello-dev_1.0-r0.0.30000000000000004_core2-64.ipk

This may be an issue in OE-core, in the way the "0.3" value can be treated by default as a float by Python3, and then converted into an incorrect string when creating the output package name. Investigating, but if you already know where this happens, I'm interested!

Cheers
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com