| Submitter | Richard Purdie |
|---|---|
| Date | Jan. 30, 2013, 2:01 p.m. |
| Message ID | <cf821420ec217dd8c733086ba219f297c1cec9cf.1359554291.git.richard.purdie@linuxfoundation.org> |
| Download | mbox | patch |
| Permalink | /patch/43691/ |
| State | Accepted |
| Commit | 9509627e06ab4cf18c5bbf3f405ecf19a9f40287 |
| Headers | show |
Comments
Patch
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 0f11ba9..8b256cf 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass @@ -997,6 +997,8 @@ python populate_packages () { seen.append(p) def mkdir_recurse(src, dest, paths): + if os.path.exists(dest + '/' + paths): + return while paths.startswith("./"): paths = paths[2:] p = "."
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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> --- meta/classes/package.bbclass | 2 ++ 1 file changed, 2 insertions(+)