[oe] [PATCH v3] package.bbclass: copy dotfiles in root D to PKGD
Michael Smith
msmith at cbnco.com
Mon Oct 18 20:43:04 UTC 2010
Frans Meulenbroeks wrote:
> Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks at gmail.com>
>
> but with a minor improvement suggestion.
> What aboout elimiating one os.system call by combining the two into one:
>
> os.system('rm -rf %s/*;cp -pPR %s/. %s/' % (pkgcopy, installdest, pkgcopy))
Hi Frans,
Thanks for the SOB. I like it better as two separate lines. I would have
preferred shutil.rmtree() if shutil.copytree() worked, actually - but
since it doesn't, no point using shutil for one line and not the other.
Mike
More information about the Openembedded-devel
mailing list