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 <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2025-06-12 16:46:37 +01:00
parent c5d7c7a230
commit d5d35a27b4
6 changed files with 15 additions and 9 deletions

View File

@@ -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)