summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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):