From 6dfe291284c6667e44733e06f820bf9546d4702b Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 14 Oct 2024 11:05:59 +0100 Subject: insane: Don't used cachedpath for os.lstat() The functions behave slightly differently to the functions they're caching and the use in insane.bbclass isn't compatible. For now, to avoid build failures, switch back to the stat calls. We may be able to improve cachedpath or change the call sites. (From OE-Core rev: fa771ae887ab5152f043748cf3419735831bcf7b) Signed-off-by: Richard Purdie --- meta/lib/oe/cachedpath.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta/lib/oe/cachedpath.py') diff --git a/meta/lib/oe/cachedpath.py b/meta/lib/oe/cachedpath.py index 0138b791d4..68c85807d9 100644 --- a/meta/lib/oe/cachedpath.py +++ b/meta/lib/oe/cachedpath.py @@ -111,9 +111,13 @@ class CachedPath(object): return True return False + # WARNING - this is not currently a drop in replacement since they return False + # rather than raise exceptions. def stat(self, path): return self.callstat(path) + # WARNING - this is not currently a drop in replacement since they return False + # rather than raise exceptions. def lstat(self, path): return self.calllstat(path) -- cgit v1.2.3-54-g00ecf