patch.bbclass: updates from upstream oe.
authorChris Larson <kergoth@openedhand.com>
Fri, 1 Sep 2006 08:36:17 +0000 (08:36 +0000)
committerChris Larson <kergoth@openedhand.com>
Fri, 1 Sep 2006 08:36:17 +0000 (08:36 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@691 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/classes/patch.bbclass

index 7bb0900..5e40b3d 100644 (file)
@@ -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):