summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Split out a depgraph._iter_match_pkgs() method fromZac Medico2009-06-251-58/+75
| | | | | | _select_pkg_highest_available_imp(). svn path=/main/trunk/; revision=13689
* Use depgraph._pkg() to construct Package instances insideZac Medico2009-06-251-20/+17
| | | | | | _select_pkg_highest_available_imp(). svn path=/main/trunk/; revision=13688
* Remove obsolete Package.metadata['CHOST'] initialization.Zac Medico2009-06-251-3/+0
| | | | svn path=/main/trunk/; revision=13687
* * Make Package.metadata['USE'] access trigger USE calculation for unbuiltZac Medico2009-06-253-50/+47
| | | | | | | | | | ebuilds. * Make Package.metadata['LICENSE'] access trigger USE conditional evaluation. * Make Package.metadata['PROVIDE'] access trigger USE conditional evaluation. * Initialize Package.metadata['CHOST'] in the Package constructor for unbuilt ebuilds. svn path=/main/trunk/; revision=13686
* Bug #275217 - Part 3 - Splits depgraph.select_files into select_files andZac Medico2009-06-241-4/+18
| | | | | | | _resolve. Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch. svn path=/main/trunk/; revision=13685
* Add support to `portageq owners` for querying paths matching a given basename.Zac Medico2009-06-241-3/+14
| | | | | | | | It is natural to support this since the vartree already maintains a basename -> owner index anyway. There are plans for the packagekit backend is to support this type of search. svn path=/main/trunk/; revision=13681
* In binarytree.inject(), when a symlink is created for the current packageZac Medico2009-06-241-2/+10
| | | | | | | | and it overwrites another package, delete the corresponding metadata from the Packages file. Thanks to Eitan Mosenkis <eitan@mosenkis.net> for reporting. svn path=/main/trunk/; revision=13680
* Bug #275237 - If a directory exists in a location where a normal file is toZac Medico2009-06-241-3/+3
| | | | | | | be merged, generate a config-protect filename for the file and merge it that way. Thanks to Jonas Bernoulli <jonas@bernoulli.cc> for this patch. svn path=/main/trunk/; revision=13679
* Bug #275217 - Part 2 - Move changelog stuff stuff out of depgraph.Zac Medico2009-06-232-53/+64
| | | | | | Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch. svn path=/main/trunk/; revision=13677
* Bu #275217 - Part 1 - Resolve the circular dep between Scheduler andZac Medico2009-06-232-20/+10
| | | | | | | depgraph; mark all functions as local that aren't used outside of depgraph. Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch. svn path=/main/trunk/; revision=13676
* Make the global "actions" variable a local inside parse_opts() since theZac Medico2009-06-231-8/+8
| | | | | | | | | | | | | | | | | | | | | name collision with the _emerge.actions module triggers this traceback with epydoc-3.0.1: Traceback (most recent call last): File "/usr/bin/epydoc", line 13, in <module> cli() File "/usr/lib/python2.6/site-packages/epydoc/cli.py", line 965, in cli main(options, names) File "/usr/lib/python2.6/site-packages/epydoc/cli.py", line 757, in main exclude_parse=exclude_parse) File "/usr/lib/python2.6/site-packages/epydoc/docbuilder.py", line 235, in build_doc_index docindex = DocIndex(docs) File "/usr/lib/python2.6/site-packages/epydoc/apidoc.py", line 1715, in __init__ raise ValueError("All APIdocs passed to DocIndexer " ValueError: All APIdocs passed to DocIndexer must already have canonical names. svn path=/main/trunk/; revision=13674
* Bug #275047 - Split _emerge/__init__.py into smaller pieces (part 6).Zac Medico2009-06-232-2704/+2735
| | | | | | Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch. svn path=/main/trunk/; revision=13673
* Bug #275047 - Split _emerge/__init__.py into smaller pieces (part 5).Zac Medico2009-06-239-6734/+6845
| | | | | | Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch. svn path=/main/trunk/; revision=13672
* Fix config._lazy_vars._accept_license() to exclude irrelevant licenses.Zac Medico2009-06-221-1/+1
| | | | svn path=/main/trunk/; revision=13671
* Change ACCEPT_LICENSE evaluation so that things like ACCEPT_LICENSE="* -@EULA"Zac Medico2009-06-222-38/+53
| | | | | | | | | | | | will work as expected. The ACCEPT_LICENSE variable is now treated as a lazily evaluated incremental, so that * can be used to match all licenses without every having to explicitly expand it to all licenses. It should now behave as approved by the council in response to the "RFC: ACCEPT_LICENSE default value (GLEP 23)" discussion: http://archives.gentoo.org/gentoo-dev/msg_d5c1e7285399ebc27a74bdd02cb4d037.xml svn path=/main/trunk/; revision=13670
* Bug #275047 - Split _emerge/__init__.py into smaller pieces (part 4).Zac Medico2009-06-2217-1958/+2134
| | | | | | Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch. svn path=/main/trunk/; revision=13669
* Bug #275047 - Split _emerge/__init__.py into smaller pieces (part 3).Zac Medico2009-06-225-341/+351
| | | | | | Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch. svn path=/main/trunk/; revision=13668
* Bug #275047 - Split _emerge/__init__.py into smaller pieces (part 2).Zac Medico2009-06-225-361/+393
| | | | | | Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch. svn path=/main/trunk/; revision=13667
* Revert lazy imports from r13665 for now, since pyflakes doesn't understandZac Medico2009-06-221-34/+27
| | | | | | them, and pyflakes helps check stuff while we're splitting this file up. svn path=/main/trunk/; revision=13666
* Use lazy imports for submodules where possible.Zac Medico2009-06-221-27/+34
| | | | svn path=/main/trunk/; revision=13665
* Fix imports broken by splitting of _emerge/__init__.py.Zac Medico2009-06-221-1/+3
| | | | svn path=/main/trunk/; revision=13664
* Bug #275047 - Split _emerge/__init__.py into smaller pieces. Thanks toZac Medico2009-06-2248-3140/+3430
| | | | | | Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch. svn path=/main/trunk/; revision=13663
* Use portage.util.apply_permissions() inside _ensure_access().Zac Medico2009-06-221-6/+10
| | | | svn path=/main/trunk/; revision=13662
* Reorganize $KV logic in doebuild_environment.Zac Medico2009-06-221-3/+5
| | | | svn path=/main/trunk/; revision=13661
* Tweak depcache permission handling so egencache can be run by a user who'sZac Medico2009-06-213-10/+30
| | | | | | not in the portage group, allowing for better privilege isolation. svn path=/main/trunk/; revision=13660
* Bug #274742 - Exempt $dir from quoting checks since it's a likely candidateZac Medico2009-06-211-1/+1
| | | | | | for false positives. svn path=/main/trunk/; revision=13659
* In doebuild_environment, ensure that cached $KV from the backupenv does notZac Medico2009-06-201-0/+2
| | | | | | leak into the environment for EAPI >= 3. svn path=/main/trunk/; revision=13658
* Factor duplicate code out of depgraph._add_pkg and _pop_disjunction.Zac Medico2009-06-201-80/+57
| | | | svn path=/main/trunk/; revision=13657
* Don't set KV for EAPI >=3.Arfrever Frehtes Taifersar Arahesis2009-06-201-1/+1
| | | | svn path=/main/trunk/; revision=13656
* Bug #264434 - Delay evaluation of all disjunctive (virtual and ||)Zac Medico2009-06-191-8/+142
| | | | | | | | | dependencies. Evaluting disjuctions as late as possible allows better decisions since the graph is more complete when the decisions are made. Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for the initial patch. svn path=/main/trunk/; revision=13655
* Add a EMERGE_LOG_DIR variable to control the location of emerge.log andZac Medico2009-06-182-2/+19
| | | | | | | emerge-fetch.log. This was requested by Eitan Mosenkis <eitan@mosenkis.net> for use in his 'online image builder' soc project. svn path=/main/trunk/; revision=13652
* When --pretend overrides --ask, don't show any output.Zac Medico2009-06-171-3/+2
| | | | svn path=/main/trunk/; revision=13650
* Add NOCOLOR to the environment whitelist. This fixes inappropriate colorsZac Medico2009-06-171-1/+1
| | | | | | | produced by elog functions. Thanks to Luis F. Araujo <araujo@gentoo.org> for reporting. svn path=/main/trunk/; revision=13649
* Rename color_codes back to codes.Zac Medico2009-06-171-70/+70
| | | | svn path=/main/trunk/; revision=13648
* Rename codes to _styles.Zac Medico2009-06-171-30/+30
| | | | svn path=/main/trunk/; revision=13647
* Rename map_code_to_color_code() to style_to_ansi_code().Zac Medico2009-06-172-6/+13
| | | | svn path=/main/trunk/; revision=13646
* Add epydoc docstrings fro codes and color_codes variables.Zac Medico2009-06-171-0/+3
| | | | svn path=/main/trunk/; revision=13645
* Use map_code_to_color_code() where appropriate inside ConsoleStyleFile.write().Zac Medico2009-06-171-1/+1
| | | | svn path=/main/trunk/; revision=13644
* Bug #274279 - Add color.map support for mapping a color to a different colorZac Medico2009-06-162-149/+150
| | | | | | | (rather than just mapping a class/style to a different color). Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch. svn path=/main/trunk/; revision=13643
* Prepare 117 messages to localization.Arfrever Frehtes Taifersar Arahesis2009-06-146-202/+222
| | | | svn path=/main/trunk/; revision=13639
* Add some really big integers to the vercmp tests.Zac Medico2009-05-161-1/+3
| | | | svn path=/main/trunk/; revision=13623
* Fix digestcheck() to handle missing distfiles digests correctly. Thanks toZac Medico2009-05-061-1/+4
| | | | | | Petteri Räty <betelgeuse@g.o> for reporting. svn path=/main/trunk/; revision=13618
* Fix SrcUnpackPatches to ignore comment lines. Thanks to Christian RuppertZac Medico2009-05-061-0/+1
| | | | | | <idl0r@g.o> for reporting. svn path=/main/trunk/; revision=13617
* tweak output when diff access rights are neededMike Frysinger2009-05-061-3/+3
| | | | svn path=/main/trunk/; revision=13616
* When generating ACCEPT_LICENSE for the ebuild environment, do not expandZac Medico2009-05-051-2/+4
| | | | | | | | *, since that would make it appear to the check_license() function as if the user has accepted licenses which have not really been explicitly accepted. svn path=/main/trunk/; revision=13615
* Make portdbapi.getfetchlist() return an equal number of uris/file names soZac Medico2009-05-051-4/+9
| | | | | | that no information is lost. svn path=/main/trunk/; revision=13613
* Simplify DepPriority.__int__() and make it consistent with __str__().Zac Medico2009-05-031-25/+13
| | | | svn path=/main/trunk/; revision=13599
* Fix inverted logic in superuser logic for bug #267104.Zac Medico2009-05-021-2/+2
| | | | svn path=/main/trunk/; revision=13596
* Fix DepPriority.__int__() to return distinguishable values, for use whenZac Medico2009-05-021-0/+37
| | | | | | | | measuring hardness for the circular dependency display. This fixes a problem visible in bug #268038, comment #0, where buildtime dependencies are incorrectly displayed as runtime dependencies. svn path=/main/trunk/; revision=13589
* Only generate KV when setting up the environment for a real ebuild phase. ThisZac Medico2009-05-011-1/+4
| | | | | | | should preven "Permission Denied: /usr/src/linux/.config" errors reported by repoman users (repoman may trigger the error when it calls the fetch phase). svn path=/main/trunk/; revision=13580