On Thu, Oct 15, 2015 at 10:27 AM, Benjamin Esquivel <benjamin.esquivel@linux.intel.com> wrote:+ def movefile(self, sourcefile, destdir):
+ try:
+ # FIXME: this check of movefile's return code to None should be
+ # fixed within the function to use only exceptions to signal when
+ # something goes wrong
+ if (bb.utils.movefile(sourcefile, destdir) == None):
+ raise Exception("moving {} to {} failed".format(
+ sourcefile, destdir))
+ except Exception as e:
+ bb.warn(str(e))
+ bb.error("unable to place {} in final SDK location".format(
+ sourcefile))
+
+ def mkdirhier(self, dirpath):
+ try:
+ bb.utils.mkdirhier(dirpath)
+ except OSError as e:
+ bb.warn(str(e))
+ bb.error("cannot make dir for SDK: {}".format(dirpath))
Shouldn't this be fatal?