summaryrefslogtreecommitdiff
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:10:36 +0000
commit9f6b9d7d0402b883fc3ad3cdead40e838ce31a27 (patch)
treecb99b5c213d1a8609ecbcac73ea7fd5e544262fe
parentf6f527694e4f896b5d8a649f0b12f5b437c27cd1 (diff)
downloadopenembedded-core-9f6b9d7d0402b883fc3ad3cdead40e838ce31a27.tar.gz
openembedded-core-9f6b9d7d0402b883fc3ad3cdead40e838ce31a27.tar.bz2
openembedded-core-9f6b9d7d0402b883fc3ad3cdead40e838ce31a27.zip
package.bbclass: Add a sanity check to the debugsrcdir removal code
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):
# Also remove debugsrcdir if its empty
for p in nosuchdir[::-1]:
- if not os.listdir(p):
+ if os.path.exists(p) and not os.listdir(p):
os.rmdir(p)
def runstrip(file, elftype, d):