diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-02-24 16:09:00 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-02-24 16:11:27 +0000 |
commit | 7c46f0b1095bb4e9b38512714d2798a6c976c3eb (patch) | |
tree | 6d9ff28f0868890165d3e93d6f1c2628c6fc746a | |
parent | f017b9b6b8c571431b5e1cac9808b2f957e0294b (diff) | |
download | poky-7c46f0b1095bb4e9b38512714d2798a6c976c3eb.tar.gz |
package.bbclass: Add a sanity check to the debugsrcdir removal code
(From OE-Core rev: 9f6b9d7d0402b883fc3ad3cdead40e838ce31a27)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/package.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 266173cdf2..91c4c6ee12 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass | |||
@@ -276,7 +276,7 @@ def splitfile2(debugsrcdir, d): | |||
276 | 276 | ||
277 | # Also remove debugsrcdir if its empty | 277 | # Also remove debugsrcdir if its empty |
278 | for p in nosuchdir[::-1]: | 278 | for p in nosuchdir[::-1]: |
279 | if not os.listdir(p): | 279 | if os.path.exists(p) and not os.listdir(p): |
280 | os.rmdir(p) | 280 | os.rmdir(p) |
281 | 281 | ||
282 | def runstrip(file, elftype, d): | 282 | def runstrip(file, elftype, d): |