[oe-commits] org.oe.dev patch.bbclass:
clarson commit
openembedded-commits at lists.openembedded.org
Wed Aug 30 08:36:57 UTC 2006
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.
Author: clarson at kergoth.com
Branch: org.openembedded.dev
Revision: 16c6200929261d7ff2851ae9fa07f6fff6aa493f
ViewMTN: http://monotone.openembedded.org/revision.psp?id=16c6200929261d7ff2851ae9fa07f6fff6aa493f
Files:
1
classes/patch.bbclass
Diffs:
#
# mt diff -r9f5352e4df25228e76f9b50379d4725b307e23e5 -r16c6200929261d7ff2851ae9fa07f6fff6aa493f
#
#
#
# patch "classes/patch.bbclass"
# from [e05e72c39752e90c2160435332f720e73d782cfd]
# to [3ab348fb313a3f01a472ac9ddae2df5e556dc394]
#
============================================================
--- classes/patch.bbclass e05e72c39752e90c2160435332f720e73d782cfd
+++ classes/patch.bbclass 3ab348fb313a3f01a472ac9ddae2df5e556dc394
@@ -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:
+ except Exception:
pass
- except NotFoundError:
- pass
- # runcmd(["rm", "-rf", os.path.join(self.dir, "patches"), os.path.join(self.dir, ".pc")])
self.initialized = True
def InitFromDir(self):
More information about the Openembedded-commits
mailing list