summaryrefslogtreecommitdiff
path: root/classes/patch.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/patch.bbclass')
-rw-r--r--classes/patch.bbclass7
1 files changed, 2 insertions, 5 deletions
diff --git a/classes/patch.bbclass b/classes/patch.bbclass
index 7bb0900f8a..5e40b3dc0d 100644
--- a/classes/patch.bbclass
+++ b/classes/patch.bbclass
@@ -176,16 +176,13 @@ def patch_init(d):
self.initialized = False
p = os.path.join(self.dir, 'patches')
if not os.path.exists(p):
- os.mkdir(p)
+ os.makedirs(p)
def Clean(self):
try:
self._runcmd(["pop", "-a", "-f"])
- except CmdError:
- pass
- except NotFoundError:
+ except Exception:
pass
- # runcmd(["rm", "-rf", os.path.join(self.dir, "patches"), os.path.join(self.dir, ".pc")])
self.initialized = True
def InitFromDir(self):