diff options
Diffstat (limited to 'meta/classes')
-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): # 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): |