summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-24 16:09:00 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-24 16:11:27 +0000
commit7c46f0b1095bb4e9b38512714d2798a6c976c3eb (patch)
tree6d9ff28f0868890165d3e93d6f1c2628c6fc746a
parentf017b9b6b8c571431b5e1cac9808b2f957e0294b (diff)
downloadpoky-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.bbclass2
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
282def runstrip(file, elftype, d): 282def runstrip(file, elftype, d):