mirror of
https://git.yoctoproject.org/poky
synced 2026-09-16 00:49:32 +02:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user