summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/patch.bbclass7
1 files changed, 2 insertions, 5 deletions
diff --git a/meta/classes/patch.bbclass b/meta/classes/patch.bbclass
index 7bb0900f8a..5e40b3dc0d 100644
--- a/meta/classes/patch.bbclass
+++ b/meta/classes/patch.bbclass
@@ -176,16 +176,13 @@ def patch_init(d):
176 self.initialized = False 176 self.initialized = False
177 p = os.path.join(self.dir, 'patches') 177 p = os.path.join(self.dir, 'patches')
178 if not os.path.exists(p): 178 if not os.path.exists(p):
179 os.mkdir(p) 179 os.makedirs(p)
180 180
181 def Clean(self): 181 def Clean(self):
182 try: 182 try:
183 self._runcmd(["pop", "-a", "-f"]) 183 self._runcmd(["pop", "-a", "-f"])
184 except CmdError: 184 except Exception:
185 pass
186 except NotFoundError:
187 pass 185 pass
188 # runcmd(["rm", "-rf", os.path.join(self.dir, "patches"), os.path.join(self.dir, ".pc")])
189 self.initialized = True 186 self.initialized = True
190 187
191 def InitFromDir(self): 188 def InitFromDir(self):