package: Add hack to allow/help with the libosmocore split
Right now we have one "libosmocore" package but if we split it up the libosmocore package will be renamed to libosmocore6 and then even a RREPLACE_libosmocore = "libosmocore" will be replaced to RREPLACE_libosmocore6 = "libosmocore6". Add a HACK to have a certain start of a dependency not being replaced. This will be used by the libosmocore upgrade. We only need this in dora as for other distributions we start with a fresh slate. Related: SYS#217
This commit is contained in:
parent
4e69783333
commit
106e8cb85f
|
@ -358,8 +358,12 @@ def runtime_mapping_rename (varname, pkg, d):
|
|||
new_depends = {}
|
||||
deps = bb.utils.explode_dep_versions2(d.getVar(varname, True) or "")
|
||||
for depend in deps:
|
||||
new_depend = get_package_mapping(depend, pkg, d)
|
||||
new_depends[new_depend] = deps[depend]
|
||||
if depend.startswith('DONOTREPLACE'):
|
||||
new_depend = depend[12:]
|
||||
new_depends[new_depend] = deps[depend]
|
||||
else:
|
||||
new_depend = get_package_mapping(depend, pkg, d)
|
||||
new_depends[new_depend] = deps[depend]
|
||||
|
||||
d.setVar(varname, bb.utils.join_deps(new_depends, commasep=False))
|
||||
|
||||
|
|
Loading…
Reference in New Issue