In dep_zapdeps(), add a new choice category for choices that have packages
authorZac Medico <zmedico@gentoo.org>
Sat, 30 Aug 2008 06:10:22 +0000 (06:10 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 30 Aug 2008 06:10:22 +0000 (06:10 -0000)
commited589e570b592a8aad5665f8763e947164abd1ce
treea2ed83f81567d2b43238d3e4644cf0ee16eef2a4
parentd2c55e30f5c1944b1b02dfebc9a93e6ffcd8fd0b
In dep_zapdeps(), add a new choice category for choices that have packages
that aren't yet installed but have been added to the graph. This category
is given lower priority that the category for packages that are already
installed. This helps dep_zapdeps() avoid making choices in some cases that
would result in an unsolvable circular dependency. Thanks to Diego "Flameeyes"
Pettenò for reporting a circular dependency issue involving that java overlay
which is solved by this patch. The particular issue was triggered when
attempting to install dev-java/icedtea6 for the first time. A circular
dependency between dev-java/eclipse-ecj-3.2.2-r1 and dev-java/icedtea6-1.2
occured since icedtea6 was chosen to satisfy the jdk dependency of
eclipse-ecj, even though sun-jdk-1.6.0.07 was already installed and capable of
satisfying the dependency. This patch solves the issue by causing sun-jdk to
be properly selected to satisfy the jdk dependency of eclipse-ecj.

svn path=/main/trunk/; revision=11478
pym/portage/__init__.py