Re: [OE-core] [PATCH 1/1] package.bbclass: ensure correct modes on directories

2014-07-18 Thread Richard Purdie
On Thu, 2014-07-17 at 10:08 +0800, Chen Qi wrote: > fstat = cpath.stat(src) > os.mkdir(dest, fstat.st_mode) > +os.chmod(dest, fstat.st_mode) This doesn't make sense. Shouldn't the fstat.st_mode to os.mkdir have taken care of the mode for us? Cheer

[OE-core] [PATCH 1/1] package.bbclass: ensure correct modes on directories

2014-07-16 Thread Chen Qi
Previously, when we create directories in populate_packages, the directory modes are not all correct. Take the base-files recipe as an example. The directory package/home has mode 2755, but packages-split/base-files/home has mode 0755. So after using creating directory, we need to use chmod to ens