<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 15, 2015 at 10:27 AM, Benjamin Esquivel <span dir="ltr"><<a href="mailto:benjamin.esquivel@linux.intel.com" target="_blank">benjamin.esquivel@linux.intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":1fa" class="a3s" style="overflow:hidden">+ def movefile(self, sourcefile, destdir):<br>
+ try:<br>
+ # FIXME: this check of movefile's return code to None should be<br>
+ # fixed within the function to use only exceptions to signal when<br>
+ # something goes wrong<br>
+ if (bb.utils.movefile(sourcefile, destdir) == None):<br>
+ raise Exception("moving {} to {} failed".format(<br>
+ sourcefile, destdir))<br>
+ except Exception as e:<br>
+ bb.warn(str(e))<br>
+ bb.error("unable to place {} in final SDK location".format(<br>
+ sourcefile))<br>
+<br>
+ def mkdirhier(self, dirpath):<br>
+ try:<br>
+ bb.utils.mkdirhier(dirpath)<br>
+ except OSError as e:<br>
+ bb.warn(str(e))<br>
+ bb.error("cannot make dir for SDK: {}".format(dirpath))</div></blockquote></div><br>Shouldn't this be fatal?<br>-- <br><div class="gmail_signature">Christopher Larson<br>clarson at kergoth dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics</div>
</div></div>