From 2d3ff5e6e17c3c8e0ba000c696da54e51167f15d Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 24 May 2012 13:56:34 +0100 Subject: bitbake/cooker: Ensure matchFile returns full pathnames We should always be passing full pathnames around within bitbake. If a file was referenced as a relative path to the current working directory, it might not get passed through the abspath call and hence the cwd would not get added as a prefix. This change adds a second pass at ensuring we only return absolute paths. (Bitbake rev: 72fc62ca124a24e2dbe404a3c83a49608a7c7931) Signed-off-by: Richard Purdie --- bitbake/lib/bb/cooker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 8ad4922651..bafd832a67 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -985,12 +985,12 @@ class BBCooker: """ Find the .bb files which match the expression in 'buildfile'. """ - if bf.startswith("/") or bf.startswith("../"): bf = os.path.abspath(bf) filelist, masked = self.collect_bbfiles() try: os.stat(bf) + bf = os.path.abspath(bf) return [bf] except OSError: regexp = re.compile(bf) -- cgit v1.2.3-54-g00ecf