summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2006-08-30 08:32:22 +0000
committerChris Larson <clarson@kergoth.com>2006-08-30 08:32:22 +0000
commitee5c15c58188e02db43e54b9093d9c0f73696182 (patch)
tree18f0b9efe277d3dca3a1d4b2abb074823674dc7c /classes
parent86f8687c1632cb0f1b6da84589e8bc211f4b40ab (diff)
patch.bbclass:
* switch os.mkdir to os.makedirs. * pass on all errors from QuiltTree.Clean(), as it can fail in ways that do not need to be reported to the user, and a failure will end up being seen again during the Import/Push of the patches.
Diffstat (limited to 'classes')
-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):