From ac9e6822f1e83baf6b1430a352adbca9c9185597 Mon Sep 17 00:00:00 2001
From: Richard Purdie <rpurdie@linux.intel.com>
Date: Sun, 22 Aug 2010 00:27:55 +0100
Subject: 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>
---
 meta/lib/oe/path.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oe/path.py b/meta/lib/oe/path.py
index d671ce921..f42faeab2 100644
--- a/meta/lib/oe/path.py
+++ b/meta/lib/oe/path.py
@@ -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
-- 
cgit v1.2.3