| Message ID | 20261116-oe-lib-docstrings-v1-1-0c894f6a1064@bootlin.com |
|---|---|
| State | New |
| Headers | show |
| Series | Improve or add oe.* library docstrings | expand |
diff --git a/meta/lib/oe/path.py b/meta/lib/oe/path.py index 88d256f00b..8fe5bbc7fb 100644 --- a/meta/lib/oe/path.py +++ b/meta/lib/oe/path.py @@ -81,9 +81,9 @@ def replace_absolute_symlinks(basedir, d): os.symlink(base, path) @bb.parse.vardepsexclude("TOPDIR") -def format_display(path, metadata): +def format_display(path, d): """ Prepare a path for display to the user. """ - rel = relative(metadata.getVar("TOPDIR"), path) + rel = relative(d.getVar("TOPDIR"), path) if len(rel) > len(path): return path else:
Using metadata for this argument is confusing, as almost any other function in the oe library uses "d" to denote the datastore. Rename it to "d". Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> --- meta/lib/oe/path.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)