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:10:36 +0000 |
commit | 9f6b9d7d0402b883fc3ad3cdead40e838ce31a27 (patch) | |
tree | cb99b5c213d1a8609ecbcac73ea7fd5e544262fe /meta | |
parent | f6f527694e4f896b5d8a649f0b12f5b437c27cd1 (diff) | |
download | openembedded-core-9f6b9d7d0402b883fc3ad3cdead40e838ce31a27.tar.gz openembedded-core-9f6b9d7d0402b883fc3ad3cdead40e838ce31a27.tar.bz2 openembedded-core-9f6b9d7d0402b883fc3ad3cdead40e838ce31a27.tar.xz openembedded-core-9f6b9d7d0402b883fc3ad3cdead40e838ce31a27.zip |
package.bbclass: Add a sanity check to the debugsrcdir removal code
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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 266173cdf..91c4c6ee1 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): |