[oe] [PATCH v3] package.bbclass: copy dotfiles in root D to PKGD
msmith at cbnco.com
Mon Oct 18 22:43:04 CEST 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))
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.
More information about the Openembedded-devel