src_distribute_local: Change cp -f to cp -fr to account for directories.
authorJeremy Puhlman <jpuhlman@mvista.com>
Tue, 16 Jun 2009 23:53:41 +0000 (16:53 -0700)
committerChris Larson <clarson@mvista.com>
Wed, 19 Aug 2009 21:54:31 +0000 (14:54 -0700)
Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
Signed-off-by: Chris Larson <clarson@mvista.com>
classes/src_distribute_local.bbclass

index ed58ed1..5cec288 100644 (file)
@@ -13,7 +13,7 @@ SRC_DISTRIBUTECOMMAND-symlink () {
 # copies the files to the SRC_DISTRIBUTEDIR
 SRC_DISTRIBUTECOMMAND-copy () {
     test -e ${SRC}.md5 && cp -f ${SRC}.md5 .
-    cp -f ${SRC} .
+    cp -fr ${SRC} .
 }
 
 # moves the files to the SRC_DISTRIBUTEDIR and symlinks them back