From d5d35a27b4c46dbdb58ffc42dbdbbce21e433f81 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 12 Jun 2025 16:46:37 +0100 Subject: lib/oe: Move vardepexclude entries alongside functions Now we have decorators that can do this, move the variable dependencies exclusions alongside the code that needs them for maintainability. (From OE-Core rev: e522169c5f95de6fc74b43672573700d8eb8e082) Signed-off-by: Richard Purdie --- meta/lib/oe/path.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'meta/lib/oe/path.py') diff --git a/meta/lib/oe/path.py b/meta/lib/oe/path.py index 5d21cdcbdf..a1efe97d88 100644 --- a/meta/lib/oe/path.py +++ b/meta/lib/oe/path.py @@ -10,6 +10,8 @@ import shutil import subprocess import os.path +import bb.parse + def join(*paths): """Like os.path.join but doesn't treat absolute RHS specially""" return os.path.normpath("/".join(paths)) @@ -77,6 +79,7 @@ def replace_absolute_symlinks(basedir, d): os.remove(path) os.symlink(base, path) +@bb.parse.vardepsexclude("TOPDIR") def format_display(path, metadata): """ Prepare a path for display to the user. """ rel = relative(metadata.getVar("TOPDIR"), path) -- cgit v1.2.3-54-g00ecf