Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 643974

Summary: sys-apps/portage: || ( foo <bar-10 ) prevents upgrade of bar
Product: Portage Development Reporter: Zac Medico <zmedico>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: alexander, esigra
Priority: Normal Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=635540
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 155723, 645194    

Description Zac Medico gentoo-dev 2018-01-09 01:45:54 UTC
The fix for bug 635540 prevents downgrades, but upgrades still to do not work correctly.
Comment 2 Larry the Git Cow gentoo-dev 2018-01-11 19:24:16 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=86ba22da7a2f34848cdb5a6f1090c22c264e577e

commit 86ba22da7a2f34848cdb5a6f1090c22c264e577e
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2018-01-09 03:34:22 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2018-01-11 19:23:34 +0000

    dep_zapdeps: install new package, allow upgrade (bug 643974)
    
    Prefer to install a new package in order to allow upgrade of an
    installed package. This generalizes the code from bug 635540 so
    that it both allows desirable upgrades and prevents unwanted
    downgrades.
    
    Fixes: 7c58e3737616 ("dep_zapdeps: install new package, avoid downgrade (bug 635540)")
    Bug: https://bugs.gentoo.org/643974
    Reviewed-by: Alec Warner <antarus@gentoo.org>

 pym/portage/dep/dep_check.py                       |  11 +--
 .../tests/resolver/test_or_upgrade_installed.py    | 101 +++++++++++++++++++++
 2 files changed, 106 insertions(+), 6 deletions(-)}