Specific egg versions are ignored when newer eggs are around

Bug #105081 reported by Christian Theune
4
Affects Status Importance Assigned to Milestone
Buildout
Invalid
Undecided
Unassigned

Bug Description

Buildout might ignore a specific egg requirement for a recipe:

- Have a newer version of an egg in your eggs directory
- Use 'recipe==olderversion' in your buildout.cfg to request an older version

Buildout will go and fetch the older version, but it will *use* the newer version when installing a part with this recipe.

Revision history for this message
Jim Fulton (jim-zope) wrote :

I can't reproduce this.

The following test passes for me:

    Buildout might ignore a specific egg requirement for a recipe:

    - Have a newer version of an egg in your eggs directory
    - Use 'recipe==olderversion' in your buildout.cfg to request an
      older version

    Buildout will go and fetch the older version, but it will *use*
    the newer version when installing a part with this recipe.

    >>> write('buildout.cfg',
    ... '''
    ... [buildout]
    ... parts = x
    ... find-links = %(sample_eggs)s
    ...
    ... [x]
    ... recipe = zc.recipe.egg
    ... eggs = demo
    ... ''' % globals())

    >>> print system(buildout),
    buildout: Installing x
    zc.buildout.easy_install: Getting new distribution for demo
    zc.buildout.easy_install: Got demo 0.3
    zc.buildout.easy_install: Getting new distribution for demoneeded
    zc.buildout.easy_install: Got demoneeded 1.1

    >>> print system(join('bin', 'demo')),
    3 1

    >>> write('buildout.cfg',
    ... '''
    ... [buildout]
    ... parts = x
    ... find-links = %(sample_eggs)s
    ...
    ... [x]
    ... recipe = zc.recipe.egg
    ... eggs = demo ==0.1
    ... ''' % globals())

    >>> print system(buildout),
    buildout: Uninstalling x
    buildout: Installing x
    zc.buildout.easy_install: Getting new distribution for demo==0.1
    zc.buildout.easy_install: Got demo 0.1

    >>> print system(join('bin', 'demo')),
    1 1

Jim Fulton (jim-zope)
Changed in zc.buildout:
status: Unconfirmed → Needs Info
Revision history for this message
Christian Theune (ctheune) wrote :

And I can't reproduce it anymore either. :/ Rejecting my own bug.

Changed in zc.buildout:
status: Needs Info → Rejected
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.