On 18 October 2010 18:13, Frans Meulenbroeks
<[email protected]> wrote:
> 2010/10/18 Graham Gower <[email protected]>:
>>>> On Fri, Oct 8, 2010 at 6:34 AM, Michael Smith <[email protected]> wrote:
>>>>
>>>>> Use shutil.copytree() to copy D ("image") to PKGD ("package"). The
>>>>> previous system("cp %s/* ...") missed dotfiles/dirs at the top-level.
>>
>> I expect this problem could be fixed by adding an extra line, e.g.
>> os.system('cp -pPR %s/.??* %s/' % (dest, dvar))
>>
>> -Graham
>
> Do you mean as an addition to the copytree, or as an addition to the old code?

I meant as an addition if/when the commit is reverted.


> Seems adding an additional os.system kind-a beats using the
> shutil.copytree as we then still have the os.system to do the cp
> I guess the best way forward is to revert the patch and extend the
> os.system call with your patter.
> E.g. something like:
> -       os.system('cp -pPR %s/* %s/' % (dest, dvar))
> +       os.system('cp -pPR %s/* %s/.??* %s/' % (dest, dest, dvar))
>
> cp may have mutliple sources if the output is a dir.

Beautiful. I would give such a thing my ack.

-Graham

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Reply via email to