diff mbox series

[02/13] oe/path: simplify replace_absolute_symlinks() signature

Message ID 20261116-oe-lib-docstrings-v1-2-0c894f6a1064@bootlin.com
State New
Headers show
Series Improve or add oe.* library docstrings | expand

Commit Message

Antonin Godard Nov. 16, 2026, 4:09 p.m. UTC
In replace_absolute_symlinks(), the datastore (d) argument is never
used. Remove it.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 meta/classes/relative_symlinks.bbclass | 2 +-
 meta/lib/oe/path.py                    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta/classes/relative_symlinks.bbclass b/meta/classes/relative_symlinks.bbclass
index 9ee20e0d09..d2279028f2 100644
--- a/meta/classes/relative_symlinks.bbclass
+++ b/meta/classes/relative_symlinks.bbclass
@@ -7,5 +7,5 @@ 
 do_install[postfuncs] += "install_relative_symlinks"
 
 python install_relative_symlinks () {
-    oe.path.replace_absolute_symlinks(d.getVar('D'), d)
+    oe.path.replace_absolute_symlinks(d.getVar('D'))
 }
diff --git a/meta/lib/oe/path.py b/meta/lib/oe/path.py
index 8fe5bbc7fb..366ab9720a 100644
--- a/meta/lib/oe/path.py
+++ b/meta/lib/oe/path.py
@@ -59,7 +59,7 @@  def make_relative_symlink(path):
     os.remove(path)
     os.symlink(base, path)
 
-def replace_absolute_symlinks(basedir, d):
+def replace_absolute_symlinks(basedir):
     """
     Walk basedir looking for absolute symlinks and replacing them with relative ones.
     The absolute links are assumed to be relative to basedir