[Erp5-dev] Erp5 buildout on Debian Lenny
Eus
reply.to.eus.at.member.fsf.org at gmail.com
Thu Sep 10 11:37:08 CEST 2009
Hi Ho!
On Thu, 2009-09-10 at 13:21 +0400, Boris Kocherov wrote:
> 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.
Ah, a common mistake that I made when glancing through code.
Well, basically I just want to force the use `patch' instead of `quilt'.
> > And, what is the meaning of `%' operator in: 'patch -p1 < %s' % patch ?
> http://www.python.org/doc/
I skimmed the doc to no avail. That's why I asked ;-)
But, daring to assume `%' as a modulo operator, I googled for "python
string modulo" and found the light:
http://www.informit.com/articles/article.aspx?p=28790&seqNum=2
That corresponds to
http://docs.python.org/library/stdtypes.html#string-formatting
Okay, thank you for your help, Boris! :-)
--
Best regards,
Eus (FSF member #4445)
In this digital era, where computing technology is pervasive, your
freedom depends on the software controlling those computing devices.
Join free software movement today! It is free as in freedom, not as in
free beer!
Join: http://www.fsf.org/jf?referrer=4445
More information about the Erp5-dev
mailing list