mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 09:32:13 +02:00
bblayers/makesetup: include local repository paths in discovered layer repo data
This can be useful when the caller needs to know where the repos actually are on local disk (for example to make a local copy of them or obtain additional information about them). This field however should be removed from the json output in oe-setup-layers plugin, as it is host-specific and not part of the schema. (From OE-Core rev: ee33ebf6140ad13e401c2cccbb106a22043be356) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
f82c933a4b
commit
8332fd532f
@@ -76,6 +76,7 @@ class MakeSetupPlugin(LayerPlugin):
|
||||
repos_nopaths[r_nopath] = repos[r]
|
||||
r_relpath = os.path.relpath(r, top_path)
|
||||
repos_nopaths[r_nopath]['path'] = r_relpath
|
||||
repos_nopaths[r_nopath]['originpath'] = r
|
||||
return repos_nopaths
|
||||
|
||||
def do_make_setup(self, args):
|
||||
|
||||
@@ -85,6 +85,8 @@ class OeSetupLayersWriter():
|
||||
if not os.path.exists(args.destdir):
|
||||
os.makedirs(args.destdir)
|
||||
repos = parent.make_repo_config(args.destdir)
|
||||
for r in repos.values():
|
||||
del r['originpath']
|
||||
json = {"version":"1.0","sources":repos}
|
||||
if not repos:
|
||||
err = "Could not determine layer sources"
|
||||
|
||||
Reference in New Issue
Block a user