[Erp5-dev] Erp5 buildout on Debian Lenny

Boris Kocherov bk at raskon.org
Thu Sep 10 11:21:37 CEST 2009


On 09/10/09 08:19, Eus wrote:
> However, I dare to change it because of the following logic
> in /home/erp5/erp5-buildout/parts/z2i/plone.recipe.zope2install/src/plone/recipe/zope2install/__init__.py line 249 that barks about AssertionError:
> 
> --- 8< -----------
>         # apply a patch to zope before build
>         patch_command = options.get('patch-command', None)
>         patch = options.get('patch', None)
>         if patch_command:
>             assert os.system(patch_command) == 0
>         if patch:
>             assert os.system('patch -p1 < %s' % patch) == 0
> --- 8< -----------
> 
> But, it is true that if patch_command is unavailable, then patch will be
> used if it is set. Is that true?
It is not true.
If patch set: patch will be used.

> And, what is the meaning of `%' operator in: 'patch -p1 < %s' % patch ?
http://www.python.org/doc/


-- 
Crisis had come unexpectedly, just as winter comes unexpectedly to
Russia every year.



More information about the Erp5-dev mailing list