summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
...
* For compatibility with python-3.0, inherit from ObjectProxy instead ofZac Medico2009-03-111-89/+123
| | | | | | inheriting directly from file. (trunk r12640) svn path=/main/branches/2.1.6/; revision=12912
* For python-3.0 compatibility, don't use string.letters. (trunk r12639)Zac Medico2009-03-111-1/+1
| | | | svn path=/main/branches/2.1.6/; revision=12911
* Don't bother to calculate PORTAGE_COUNTER_HASH when in --pretend mode.Zac Medico2009-03-111-3/+4
| | | | | | (trunk r12637) svn path=/main/branches/2.1.6/; revision=12909
* Inside post_emerge(), skip the vardbapi counter check when in --pretendZac Medico2009-03-111-2/+2
| | | | | | | mode (significant performance improvement). Thanks to Marat Radchenko (slonopotamus) for reporting. (trunk r12636) svn path=/main/branches/2.1.6/; revision=12908
* For compatibility with python-3.0, use isinstance() instead of type().Zac Medico2009-03-113-16/+17
| | | | | | (trunk r12633) svn path=/main/branches/2.1.6/; revision=12906
* Fix classes that implement __iter__() to copy it to their keys() methodZac Medico2009-03-112-0/+10
| | | | | | when running under >=python-3.0. (trunk r12632) svn path=/main/branches/2.1.6/; revision=12905
* Remove redundant ConfigLoaderKlass.__iter__() method. (trunk r12631)Zac Medico2009-03-111-3/+0
| | | | svn path=/main/branches/2.1.6/; revision=12904
* Implement UserDict.__contains__() and __iter__(). (trunk r12630)Zac Medico2009-03-111-0/+6
| | | | svn path=/main/branches/2.1.6/; revision=12903
* Implement a substitute for UserDict.UserDict so that code converted viaZac Medico2009-03-112-5/+44
| | | | | | | | 2to3 will run: http://bugs.python.org/issue2876 (trunk r12629) svn path=/main/branches/2.1.6/; revision=12902
* In python-3.0, the UserDict.DictMixin class has been replaced byZac Medico2009-03-113-32/+132
| | | | | | | | | | | | | Mapping and MutableMapping from the collections module, but 2to3 doesn't currently account for this change: http://bugs.python.org/issue2876 As a workaround for the above issue, implement Mapping and MutableMapping classes as substitutes for UserDict.DictMixin so that code converted via 2to3 will run. (trunk r12628) svn path=/main/branches/2.1.6/; revision=12901
* Bug #253904 - Add a lookahead mechanism insideZac Medico2009-03-111-1/+16
| | | | | | | | | depgraph._dep_check_composite_db._visible() which masks package choices that are likely to trigger slot conflicts. Thanks to Vlastimil Babka <caster@g.o> for the suggestion. (trunk r12622:12624) svn path=/main/branches/2.1.6/; revision=12898
* Fix grabfile_package() to preprocess atoms before passing them toZac Medico2009-03-111-1/+4
| | | | | | | isvalidatom() because isvalidatom() has gotten more strict since r12614. Thanks to ABCD for reporting. (trunk r12622) svn path=/main/branches/2.1.6/; revision=12897
* Bug #259124 - Inside EbuildFetcher._start(), pass the NOCOLOR variable intoZac Medico2009-03-111-0/+4
| | | | | | the fetch environment, so that --color=n is respected. (trunk r12621) svn path=/main/branches/2.1.6/; revision=12896
* Fix broken references to DepPriority attributes. (trunk r12619)Zac Medico2009-03-111-4/+6
| | | | svn path=/main/branches/2.1.6/; revision=12894
* Fix isvalidatom to properly identify an invalid atom such asZac Medico2009-03-112-1/+5
| | | | | | | 'dev-java/nanoxml*'. Thanks to Vlastimil Babka <caster@g.o> for reporting. (trunk r12613:12617) svn path=/main/branches/2.1.6/; revision=12892
* Fix merge order calculation so that the circular runtime path isn't enteredZac Medico2009-03-111-1/+2
| | | | | | | | | when it's possible to select a node that only has unsatisfied PDEPEND. This reverts an unintended change from the patch for bug #250020, and solves a problem with libperl being merged after perl when building stage 1. (trunk r12613) svn path=/main/branches/2.1.6/; revision=12891
* Bug #250020 - When calculating merge order, try to ensure that packagesZac Medico2009-03-111-90/+197
| | | | | | | | | | | | | | | listed in DEPEND are updated before whenever possible (even though the DEPEND may already be satisfied by an installed instance). The changes to the merge order algorithm should also account for many common cases of bug #199856, but does not necessarily solve all cases. Whenever possible, the new algorithm avoids dropping dependencies that are satisfied by installed packages. Such dependencies are only dropped in a couple of cases: * when solving circular dependencies * when promoting packages to in the merge list (either due an unsatisfied PDEPEND or a portage upgrade) (trunk r12612) svn path=/main/branches/2.1.6/; revision=12890
* In depgraph._serialize_tasks(), when appropriate, execute uninstall tasksZac Medico2009-03-111-4/+15
| | | | | | | | sooner. This solves some cases of bug #256870 since there is a smaller window of time for some other failure to cause the uninstall to get discarded. (trunk r12611) svn path=/main/branches/2.1.6/; revision=12889
* For the --buildpkgonly digraph.hasallzeros() check, remove "nomerge" nodesZac Medico2009-03-111-8/+10
| | | | | | | from the graph. This makes it unnecessary to tweak the dependency priority for onlydeps packages inside depgraph._add_pkg_dep(). (trunk r12610) svn path=/main/branches/2.1.6/; revision=12888
* In depgraph._serialize_tasks(), verify that an uninstall task has at least oneZac Medico2009-03-111-22/+48
| | | | | | | theoretically mergeable parent before choosing to reverse it's edges. (trunk r12605) svn path=/main/branches/2.1.6/; revision=12886
* Fix Scheduler._prevent_builddir_collisions() to skip non-Package instancesZac Medico2009-03-111-0/+3
| | | | | | when necessary. (trunk r12604) svn path=/main/branches/2.1.6/; revision=12885
* Add a new "portage.internal" warning for prepalldocs usage since the councilZac Medico2009-03-112-1/+11
| | | | | | | ruled that it shouldn't be used in ebuilds. Thanks to Petteri Räty <betelgeuse@g.o> for the initial patch. (trunk r12603) svn path=/main/branches/2.1.6/; revision=12884
* Inside portage.fetch(), check for the case where FETCOMMAND creates aZac Medico2009-03-111-0/+29
| | | | | | | | directory where a file is expected. This can happen if FETCHCOMMAND erroneously contains wget's -P option where it should instead have -O, as reported in bug #258433, comment #16. (trunk r12601) svn path=/main/branches/2.1.6/; revision=12882
* Bug #258433 - In portage.fetch(), check for missing ${FILE} parameter inZac Medico2009-03-111-17/+50
| | | | | | FETCHCOMMAND or RESUMECOMMAND and bail out early if necessary. (trunk r12600) svn path=/main/branches/2.1.6/; revision=12881
* Inside depgraph._select_atoms(), only trigger the circular dependencyZac Medico2009-03-111-2/+11
| | | | | | | | | | | avoidance code for buildtime dependencies. This solves a problem with virtual/mysql inappropriately pulling in mysql-community from PDEPEND when satisfying deps of plain mysql. Thanks to Krzysiek Pawlik <nelchael@g.o> for reporting this issue: http://archives.gentoo.org/gentoo-dev/msg_efce154d642fe6ede38d084a33c7f949.xml (trunk r12599) svn path=/main/branches/2.1.6/; revision=12880
* Add new EAPI 3_pre1 value, and disable unpack() support for *.xz for earlierZac Medico2009-03-111-0/+4
| | | | | | EAPI values. (trunk r12596) svn path=/main/branches/2.1.6/; revision=12877
* Keep 2_pre* EAPI values in the deprecated list so that uninstalls stillZac Medico2009-03-111-1/+1
| | | | | | work normally. (trunk r12595) svn path=/main/branches/2.1.6/; revision=12876
* Remove support for deprecated 2_pre* EAPI values. (trunk r12594)Zac Medico2009-03-112-7/+4
| | | | svn path=/main/branches/2.1.6/; revision=12875
* Fix digraph.clone() to properly clone priority lists. (trunk r12587)Zac Medico2009-03-111-2/+8
| | | | svn path=/main/branches/2.1.6/; revision=12868
* Make DepPriority.__str__() indicate optional deps. (trunk r12586)Zac Medico2009-03-111-0/+2
| | | | svn path=/main/branches/2.1.6/; revision=12867
* Inside depgraph._serialize_tasks(), simplify the logic which delays selectionZac Medico2009-03-111-51/+39
| | | | | | of root nodes. (trunk r12585) svn path=/main/branches/2.1.6/; revision=12866
* For python-3.0 compatibility, make dict-like classes modify their keys(),Zac Medico2009-03-115-0/+29
| | | | | | | items(), and values() methods appropriatly for the current python version. (trunk r12584) svn path=/main/branches/2.1.6/; revision=12865
* Warn about WANT_AUTO(CONF|MAKE)=latest settings since they are redundant.Zac Medico2009-03-111-1/+13
| | | | | | Thanks to Petteri Räty <betelgeuse@g.o> for the initial patch. (trunk r12583) svn path=/main/branches/2.1.6/; revision=12864
* Fix the priorities display in digraph.debug_print() so it shows the highestZac Medico2009-03-111-3/+2
| | | | | | priority (since multiple priorities are now supported). (trunk r12582) svn path=/main/branches/2.1.6/; revision=12863
* Fix Scheduler._find_system_deps() so that it only traverses runtime deps.Zac Medico2009-03-111-3/+10
| | | | | | (trunk r12581) svn path=/main/branches/2.1.6/; revision=12862
* Add support in digraph for multiple priorities per edge and support forZac Medico2009-03-111-34/+78
| | | | | | | callable ignore_priority arguments that can be used for finer grained filtering. (trunk r12580) svn path=/main/branches/2.1.6/; revision=12861
* Add UnmergeDepPriority.optional attribute, to avoid traceback. (trunk r12579)Zac Medico2009-03-111-1/+1
| | | | svn path=/main/branches/2.1.6/; revision=12860
* Bug #256616 - Also consider deep runtime dependencies of system packages whenZac Medico2009-03-111-2/+43
| | | | | | adding packages to merge_wait_queue. (trunk r12578) svn path=/main/branches/2.1.6/; revision=12859
* For optional deps pulled in by --with-bdeps=y, set DepPriority.buildtime toZac Medico2009-03-111-1/+2
| | | | | | False. (trunk r12577) svn path=/main/branches/2.1.6/; revision=12858
* Add a DepPriority.optional attribute for optional build time deps that areZac Medico2009-03-111-10/+13
| | | | | | pulled in by --with-bdeps=y. (trunk r12576) svn path=/main/branches/2.1.6/; revision=12857
* Make emerge --regen return non-zero if that are any failures. Thanks to DanielZac Medico2009-03-111-1/+6
| | | | | | Robbins for reporting. (trunk r12575) svn path=/main/branches/2.1.6/; revision=12856
* Use portage.util.cmp_sort_key for python-3.0 compatibility. (trunk r12574)Zac Medico2009-03-111-6/+6
| | | | svn path=/main/branches/2.1.6/; revision=12855
* Use portage.util.cmp_sort_key for python-3.0 compatibility. (trunk r12572)Zac Medico2009-03-111-2/+2
| | | | svn path=/main/branches/2.1.6/; revision=12853
* Add a cmp_sort_key class which makes it easier to port code for python-3.0Zac Medico2009-03-111-0/+36
| | | | | | | compatibility. It works by generating key objects which use the given cmp function to implement their __lt__ method. (trunk r12571) svn path=/main/branches/2.1.6/; revision=12852
* In depgraph._serialize_tasks(), when separating uninstall nodes from leafZac Medico2009-03-111-11/+16
| | | | | | nodes, do it earlier so that it covers more code paths. (trunk r12570) svn path=/main/branches/2.1.6/; revision=12851
* Bug #256616 - Since dependencies on system packages are frequently unspecified,Zac Medico2009-03-111-3/+35
| | | | | | | | | merge them only when no builds are executing. When a system package finishes building, it's added to a wait queue that is only processed when the number of running builds drops to zero. All pending merges are then processed before any new builds are allowed to start. (trunk r12569) svn path=/main/branches/2.1.6/; revision=12850
* Fix logic inside depgraph._serialize_tasks() to avoid the circular runtimeZac Medico2009-03-111-30/+30
| | | | | | | | | | | | deps path in some cases when it's not appropriate. This solves a case that was reported, in which the perl was merged before libperl due do perl and lots of it's deps being selected all at once. In this case, so many packages were selected at once that the cmp_circular_bias() sort did not order them very well (though it normally works fine with a smaller number of packages). Thanks to Daniel Robbins for reporting this issue and helping me reproduce it. (trunk r12568) svn path=/main/branches/2.1.6/; revision=12849
* Implement Manifest2Entry.__ne__() so that comparisons inside Manifest.write()Zac Medico2009-03-111-0/+11
| | | | | | | work properly (to avoid rewriting an identical manifest when possible). (trunk r12567) svn path=/main/branches/2.1.6/; revision=12848
* Always ignore hidden files when generating Manifests. Thanks to ChristianZac Medico2009-03-111-1/+3
| | | | | | Ruppert for reporting. (trunk r12566) svn path=/main/branches/2.1.6/; revision=12847
* Fix color in merge list [ebuild ] display, so it's the same regardless ofZac Medico2009-03-111-1/+1
| | | | | | $ROOT. (trunk r12560) svn path=/main/branches/2.1.6/; revision=12846