[elbe-devel] [PATCH v3 0/3] implement ELBE_MIRROR_SED
Torben Hohn
torben.hohn at linutronix.de
Fri Feb 14 15:29:39 CET 2020
elbe-ci is currently broken, because the test system
relies on a specific location of default-init.xml, where it uses
sed to replace official with local mirrors.
Implement such a replacement in the preprocessor.
This feature is very useful in multiple ways, because it allows
people in different location to share elbe xmls, and still use local
mirrors.
Additionally it will remove complexity from elbe-ci.
Only PATCH 2/3 is different from v2.
Changes since v1:
-----------------
- use a loop to iterate over the url fields
- cleanup style problems
Changes since v2:
-----------------
- convert the zip() result to a list().
its only an iterator, but we want to iterate over
it more than once.
this resulted in only .//mirror/url-list/url/binary being replaced,
once.
Torben Hohn (3):
config: add ELBE_MIRROR_SED to Config object
xmlprepocess: search and replace urls based on ELBE_MIRROR_SED
xmlpreprocess: fix style problems
elbepack/config.py | 3 +++
elbepack/xmlpreprocess.py | 54 +++++++++++++++++++++++++++++++++++----
2 files changed, 52 insertions(+), 5 deletions(-)
--
2.20.1
More information about the elbe-devel
mailing list