]> git.openpandora.org Git - openembedded.git/commitdiff
package.bbclass: fix some corner cases with the new package copy mechanism.
authorMike Westerhof <mwester@dls.net>
Sat, 17 Nov 2007 06:58:16 +0000 (06:58 +0000)
committerMike Westerhof <mwester@dls.net>
Sat, 17 Nov 2007 06:58:16 +0000 (06:58 +0000)
- do not transform a symlink to a directory into a directory on copy
- preserve the mode when copying a directory

classes/package.bbclass

index ea94f89253fed845a91c66d96cbfc15e59fdd2d6..6c61f7bddad44ac3acdd4219df6e79b534948168 100644 (file)
@@ -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)