lib/oe/path: Use bb.utils.copyfile as shutils can't cope with copying unreadable files

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Richard Purdie 2010-08-22 00:27:55 +01:00
parent 87dba4254b
commit ac9e6822f1

View File

@ -70,7 +70,7 @@ def copytree(src, dst):
elif os.path.isdir(srcname):
copytree(srcname, dstname)
else:
shutil.copy2(srcname, dstname)
bb.utils.copyfile(srcname, dstname)
except (IOError, os.error), why:
errors.append((srcname, dstname, str(why)))
# catch the Error from the recursive copytree so that we can