# Copyright 2012-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 from portage.tests import TestCase from portage.tests.resolver.ResolverPlayground import (ResolverPlayground, ResolverPlaygroundTestCase) class SlotConflictRebuildTestCase(TestCase): def testSlotConflictRebuild(self): ebuilds = { "app-misc/A-1" : { "EAPI": "5", "SLOT": "0/1" }, "app-misc/A-2" : { "EAPI": "5", "SLOT": "0/2" }, "app-misc/B-0" : { "EAPI": "5", "DEPEND": "app-misc/A:=", "RDEPEND": "app-misc/A:=" }, "app-misc/C-0" : { "EAPI": "5", "DEPEND": "= and < dependencies, we scheduled rebuilds for the >= atom, but in the end didn't install the child update because of the < atom. """ ebuilds = { "cat/slotted-lib-1" : { "EAPI": "5", "SLOT": "1" }, "cat/slotted-lib-2" : { "EAPI": "5", "SLOT": "2" }, "cat/slotted-lib-3" : { "EAPI": "5", "SLOT": "3" }, "cat/slotted-lib-4" : { "EAPI": "5", "SLOT": "4" }, "cat/slotted-lib-5" : { "EAPI": "5", "SLOT": "5" }, "cat/user-1" : { "EAPI": "5", "DEPEND": ">=cat/slotted-lib-2:= =cat/slotted-lib-2:= =cat/slotted-lib-2:3/3= =cat/slotted-lib-2:3/3=