[oe-commits] org.oe.dev package.bbclass: fix some corner cases with the new package copy mechanism.

mwester commit openembedded-commits at lists.openembedded.org
Sat Nov 17 07:21:49 UTC 2007


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

Author: mwester at openembedded.org
Branch: org.openembedded.dev
Revision: 66a10a30664cefc85b6b5bfb0d4444fe5560ce9a
ViewMTN: http://monotone.openembedded.org/revision/info/66a10a30664cefc85b6b5bfb0d4444fe5560ce9a
Files:
1
classes/package.bbclass
Diffs:

#
# mt diff -r1c6d2b9e1a4ef2366c4ee5fcfa3157391fe2ad47 -r66a10a30664cefc85b6b5bfb0d4444fe5560ce9a
#
# 
# 
# patch "classes/package.bbclass"
#  from [1713a1d39b0249350a2277e9d734d92d920aaf16]
#    to [5d45a61dc3bb51e27788fa8ef8316543e655f7d6]
# 
============================================================
--- classes/package.bbclass	1713a1d39b0249350a2277e9d734d92d920aaf16
+++ classes/package.bbclass	5d45a61dc3bb51e27788fa8ef8316543e655f7d6
@@ -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)






More information about the Openembedded-commits mailing list