From: Mike Westerhof Date: Sat, 17 Nov 2007 06:58:16 +0000 (+0000) Subject: package.bbclass: fix some corner cases with the new package copy mechanism. X-Git-Tag: Release-2010-05/1~8378 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1cbbae16ff0997cf5e4ba6142ae5e9de76ef89f;p=openembedded.git package.bbclass: fix some corner cases with the new package copy mechanism. - do not transform a symlink to a directory into a directory on copy - preserve the mode when copying a directory --- diff --git a/classes/package.bbclass b/classes/package.bbclass index ea94f89253..6c61f7bdda 100644 --- a/classes/package.bbclass +++ b/classes/package.bbclass @@ -485,8 +485,9 @@ python populate_packages () { if file in seen: continue seen.append(file) - if os.path.isdir(file): + if os.path.isdir(file) and not os.path.islink(file): bb.mkdirhier(os.path.join(root,file)) + os.chmod(os.path.join(root,file), os.stat(file).st_mode) continue fpath = os.path.join(root,file) dpath = os.path.dirname(fpath)