diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-10-14 11:05:59 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-10-14 21:42:17 +0100 |
commit | 6dfe291284c6667e44733e06f820bf9546d4702b (patch) | |
tree | db13412e07cfa58ae36fa2f21847137ca5c8d511 /meta/lib/oe/cachedpath.py | |
parent | d2b2675cc40f55e4a8b27ea921bc4bb98fc2431d (diff) | |
download | poky-6dfe291284c6667e44733e06f820bf9546d4702b.tar.gz |
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 <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/cachedpath.py')
-rw-r--r-- | meta/lib/oe/cachedpath.py | 4 |
1 files changed, 4 insertions, 0 deletions
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): | |||
111 | return True | 111 | return True |
112 | return False | 112 | return False |
113 | 113 | ||
114 | # WARNING - this is not currently a drop in replacement since they return False | ||
115 | # rather than raise exceptions. | ||
114 | def stat(self, path): | 116 | def stat(self, path): |
115 | return self.callstat(path) | 117 | return self.callstat(path) |
116 | 118 | ||
119 | # WARNING - this is not currently a drop in replacement since they return False | ||
120 | # rather than raise exceptions. | ||
117 | def lstat(self, path): | 121 | def lstat(self, path): |
118 | return self.calllstat(path) | 122 | return self.calllstat(path) |
119 | 123 | ||