]> code.ossystems Code Review - openembedded-core.git/commitdiff
lib/oe/path: Use bb.utils.copyfile as shutils can't cope with copying unreadable...
authorRichard Purdie <rpurdie@linux.intel.com>
Sat, 21 Aug 2010 23:27:55 +0000 (00:27 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Sat, 21 Aug 2010 23:27:55 +0000 (00:27 +0100)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
meta/lib/oe/path.py

index d671ce9216550c2b47cbc3199c063971fa4400ed..f42faeab260f5eac5d27dca5c41bf036c15b92dc 100644 (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