[OE-core] About pseudo's chmod

Seebs seebs at seebs.net
Tue Aug 2 19:16:15 UTC 2016


On 2 Aug 2016, at 3:32, Robert Yang wrote:

> It is worth trying, I will try to remove os.chown() and os.chmod() from
> package.bbclass to see what will happen:
>
>             if not cpath.islink(file):
>                 os.link(file, fpath)
>                 fstat = cpath.stat(file)
>                 os.chmod(fpath, fstat.st_mode)
>                 os.chown(fpath, fstat.st_uid, fstat.st_gid)

... Okay, I admit, I can't figure this one out. Can anyone explain
this?

Does python's os.link work across devices maybe?

-s



More information about the Openembedded-core mailing list