summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Handle ValueError when unpickling, since this can be triggered by anZac Medico2009-02-194-4/+4
| | | | | | unsupported pickle protocol. svn path=/main/trunk/; revision=12648
* Fix update() methods to work with python-3.0.Zac Medico2009-02-191-8/+24
| | | | svn path=/main/trunk/; revision=12647
* Tweak exception handling indentation to avoid a bug in 2to3.Zac Medico2009-02-191-2/+4
| | | | svn path=/main/trunk/; revision=12646
* For python-3.0 compatibility, encode strings as binary before trying to passZac Medico2009-02-191-2/+2
| | | | | | them to hashlib. svn path=/main/trunk/; revision=12645
* Tweak code to avoid python-3.0 errors like this one:Zac Medico2009-02-191-3/+9
| | | | | | SyntaxError: can not delete variable 'e' referenced in nested scope svn path=/main/trunk/; revision=12644
* Revert accidental python-3.0 syntax.Zac Medico2009-02-191-2/+2
| | | | svn path=/main/trunk/; revision=12643
* For compatibility with python-3.0, open files in text mode where appropriate.Zac Medico2009-02-195-6/+6
| | | | svn path=/main/trunk/; revision=12642
* For compatibility with python-3.0, always open streams for pickles in binaryZac Medico2009-02-195-25/+15
| | | | | | mode. svn path=/main/trunk/; revision=12641
* For compatibility with python-3.0, inherit from ObjectProxy instead ofZac Medico2009-02-191-89/+123
| | | | | | inheriting directly from file. svn path=/main/trunk/; revision=12640
* For python-3.0 compatibility, don't use string.letters.Zac Medico2009-02-191-1/+1
| | | | svn path=/main/trunk/; revision=12639
* Use a regular expression for the file.name check. This replaces some oddZac Medico2009-02-191-15/+12
| | | | | | map() usage that 2to3 warns about. svn path=/main/trunk/; revision=12638
* Don't bother to calculate PORTAGE_COUNTER_HASH when in --pretend mode.Zac Medico2009-02-191-3/+4
| | | | svn path=/main/trunk/; revision=12637
* Inside post_emerge(), skip the vardbapi counter check when in --pretendZac Medico2009-02-191-2/+2
| | | | | | | mode (significant performance improvement). Thanks to Marat Radchenko (slonopotamus) for reporting. svn path=/main/trunk/; revision=12636
* For python-3.0 compatibility, raise a real exception instead of a string.Zac Medico2009-02-191-2/+2
| | | | svn path=/main/trunk/; revision=12635
* Bug #230483 - Convert glsa-check option parsing to use the optparse module.Zac Medico2009-02-191-93/+71
| | | | | | | This replaces some code which triggers a traceback from 2to3. Thanks to Ali Polatel <hawking@g.o> for this patch. svn path=/main/trunk/; revision=12634
* For compatibility with python-3.0, use isinstance() instead of type().Zac Medico2009-02-194-20/+17
| | | | svn path=/main/trunk/; revision=12633
* Fix classes that implement __iter__() to copy it to their keys() methodZac Medico2009-02-192-0/+10
| | | | | | when running under >=python-3.0. svn path=/main/trunk/; revision=12632
* Remove redundant ConfigLoaderKlass.__iter__() method.Zac Medico2009-02-191-3/+0
| | | | svn path=/main/trunk/; revision=12631
* Implement UserDict.__contains__() and __iter__().Zac Medico2009-02-191-0/+6
| | | | svn path=/main/trunk/; revision=12630
* Implement a substitute for UserDict.UserDict so that code converted viaZac Medico2009-02-192-5/+44
| | | | | | | | 2to3 will run: http://bugs.python.org/issue2876 svn path=/main/trunk/; revision=12629
* In python-3.0, the UserDict.DictMixin class has been replaced byZac Medico2009-02-193-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. svn path=/main/trunk/; revision=12628
* Set svn:keywords Id on all files.Zac Medico2009-02-1819-19/+19
| | | | svn path=/main/trunk/; revision=12626
* Make save_ebuild_env() filter NOCOLOR, and remove related code from ebuild.shZac Medico2009-02-182-13/+1
| | | | | | since that variable is not loaded from $T/environment anymore. svn path=/main/trunk/; revision=12625
* Call depgraph._dep_check_composite_db._clear_cache() insideZac Medico2009-02-181-1/+2
| | | | | | | depgraph._add_pkg() since _dep_check_composite_db._visible() is now affected by which packages are added to the graph. svn path=/main/trunk/; revision=12624
* Bug #253904 - Add a lookahead mechanism insideZac Medico2009-02-171-0/+14
| | | | | | | | 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. svn path=/main/trunk/; revision=12623
* Fix grabfile_package() to preprocess atoms before passing them toZac Medico2009-02-171-1/+4
| | | | | | | isvalidatom() because isvalidatom() has gotten more strict since r12614. Thanks to ABCD for reporting. svn path=/main/trunk/; revision=12622
* Bug #259124 - Inside EbuildFetcher._start(), pass the NOCOLOR variable intoZac Medico2009-02-161-0/+4
| | | | | | the fetch environment, so that --color=n is respected. svn path=/main/trunk/; revision=12621
* unify code for unpacking of tar filesMike Frysinger2009-02-161-23/+13
| | | | svn path=/main/trunk/; revision=12620
* Fix broken references to DepPriority attributes.Zac Medico2009-02-151-4/+6
| | | | svn path=/main/trunk/; revision=12619
* In dyn_package(), show a more informative die message if an error occurs whenZac Medico2009-02-151-1/+1
| | | | | | creating the tarball. svn path=/main/trunk/; revision=12618
* Add a test case for the new case which is detected by isvalidatom().Zac Medico2009-02-151-0/+1
| | | | svn path=/main/trunk/; revision=12617
* Fix more false positives in isvalidatom() from previous commits.Zac Medico2009-02-151-2/+3
| | | | svn path=/main/trunk/; revision=12616
* Fix isvalidatom() logic from previous commit to avoid false positives.Zac Medico2009-02-151-1/+1
| | | | svn path=/main/trunk/; revision=12615
* Fix isvalidatom to properly identify an invalid atom such asZac Medico2009-02-151-0/+2
| | | | | | 'dev-java/nanoxml*'. Thanks to Vlastimil Babka <caster@g.o> for reporting. svn path=/main/trunk/; revision=12614
* Fix merge order calculation so that the circular runtime path isn't enteredZac Medico2009-02-151-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. svn path=/main/trunk/; revision=12613
* Bug #250020 - When calculating merge order, try to ensure that packagesZac Medico2009-02-141-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) svn path=/main/trunk/; revision=12612
* In depgraph._serialize_tasks(), when appropriate, execute uninstall tasksZac Medico2009-02-141-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. svn path=/main/trunk/; revision=12611
* For the --buildpkgonly digraph.hasallzeros() check, remove "nomerge" nodesZac Medico2009-02-141-8/+10
| | | | | | | from the graph. This makes it unnecessary to tweak the dependency priority for onlydeps packages inside depgraph._add_pkg_dep(). svn path=/main/trunk/; revision=12610
* Automatically export QA_PRESTRIPPED if it's set. Thanks to Raúl PorcelZac Medico2009-02-141-0/+3
| | | | | | <armin76@g.o> for reporting. svn path=/main/trunk/; revision=12609
* In depgraph._serialize_tasks(), verify that an uninstall task has at least oneZac Medico2009-02-131-22/+48
| | | | | | theoretically mergeable parent before choosing to reverse it's edges. svn path=/main/trunk/; revision=12605
* Fix Scheduler._prevent_builddir_collisions() to skip non-Package instancesZac Medico2009-02-131-0/+3
| | | | | | when necessary. svn path=/main/trunk/; revision=12604
* Add a new "portage.internal" warning for prepalldocs usage since the councilZac Medico2009-02-124-1/+15
| | | | | | | ruled that it shouldn't be used in ebuilds. Thanks to Petteri Räty <betelgeuse@g.o> for the initial patch. svn path=/main/trunk/; revision=12603
* * Remove outdated comment about qa_source() return value (with typo).Zac Medico2009-02-121-2/+2
| | | | | | | * Update copyright header. Thanks to Jeremy Olexa <darkside@g.o> for reporting. svn path=/main/trunk/; revision=12602
* Inside portage.fetch(), check for the case where FETCOMMAND creates aZac Medico2009-02-121-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. svn path=/main/trunk/; revision=12601
* Bug #258433 - In portage.fetch(), check for missing ${FILE} parameter inZac Medico2009-02-121-17/+50
| | | | | | FETCHCOMMAND or RESUMECOMMAND and bail out early if necessary. svn path=/main/trunk/; revision=12600
* Inside depgraph._select_atoms(), only trigger the circular dependencyZac Medico2009-02-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 svn path=/main/trunk/; revision=12599
* Bug #258433 - Note FETCHCOMMAND and RESUMECOMMAND requirements wrt ${FILE}Zac Medico2009-02-101-0/+4
| | | | | | for compatibility with EAPI 2. svn path=/main/trunk/; revision=12598
* Document EAPI 3_pre1.Zac Medico2009-02-093-0/+17
| | | | svn path=/main/trunk/; revision=12597
* Add new EAPI 3_pre1 value, and disable unpack() support for *.xz for earlierZac Medico2009-02-092-4/+13
| | | | | | EAPI values. svn path=/main/trunk/; revision=12596
* Keep 2_pre* EAPI values in the deprecated list so that uninstalls stillZac Medico2009-02-091-1/+1
| | | | | | work normally. svn path=/main/trunk/; revision=12595