summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-29 13:47:17 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-01 15:54:01 +0000
commitae8586c95215687db1978ef7998a1756bc4c69b1 (patch)
tree4e6333719ee5433a126f3c3c4d959deac372b071
parentafb1b3fac830595523a6d7c4a05920853bfaf760 (diff)
downloadpoky-ae8586c95215687db1978ef7998a1756bc4c69b1.tar.gz
package.bbclass: Add a shortcut exit from the mkdir function
The mkdir function iterates over strings with many different operations, even if ultimately the target already exists. This adds a check to the start of the function so we don't waste time when the target already exists. (From OE-Core rev: 06e188e673313f1eb9ae7d85ae64467c8d2a94b3) (From OE-Core rev: 9509627e06ab4cf18c5bbf3f405ecf19a9f40287) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/package.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 0f11ba9e5f..8b256cf4ce 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -997,6 +997,8 @@ python populate_packages () {
997 seen.append(p) 997 seen.append(p)
998 998
999 def mkdir_recurse(src, dest, paths): 999 def mkdir_recurse(src, dest, paths):
1000 if os.path.exists(dest + '/' + paths):
1001 return
1000 while paths.startswith("./"): 1002 while paths.startswith("./"):
1001 paths = paths[2:] 1003 paths = paths[2:]
1002 p = "." 1004 p = "."