+= for as first declaration makes later += fail

Bug #458363 reported by Florian Friesdorf
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Buildout
New
Undecided
Unassigned

Bug Description

I had:

versions.cfg:
[versions]
x = 1
y = 2
....

base.cfg:
[buildout]
extends = versions.cfg

parts += zope2
...

devel.cfg:
[buildout]
extends = base.cfg

parts += instance

The first parts += should be parts =, as there is no previously defined parts. However, the result is not what I would expect: There was no error message, it build the zope2 part and then stopped - no instance part was built.

Revision history for this message
Vincent Fretin (vincent-fretin) wrote :

I have the same problem with zc.buildout 1.4.2, I'm sure it worked before.

Here is the example:
base.cfg
[buildout]
find-links +=
    http://dist.plone.org/release/3.3.2
    http://dist.plone.org/thirdparty

buildout.cfg
[buildout]
extends = base.cfg
find-links +=
    http://pypi.company.com/pypi/simple

bin/buildout annotate

Annotated sections
==================

[buildout]
find-links=

http://dist.plone.org/release/3.3.2
http://dist.plone.org/thirdparty
+= /home/vincentfretin/tmp/zc.buildout-issue/base.cfg

And I want here:
find-links=
http://dist.plone.org/release/3.3.2
http://dist.plone.org/thirdparty

http://pypi.company.com/pypi/simple
    /home/vincentfretin/tmp/zc.buildout-issue/base.cfg
+= /home/vincentfretin/tmp/zc.buildout-issue/buildout.cfg

Revision history for this message
Benoît Bryon (benoit.bryon) wrote :

Not sure it is exactly the same problem, but https://bugs.launchpad.net/zc.buildout/+bug/1060236 may be related: it also deals with inheritance and "+=".

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.