summaryrefslogtreecommitdiffstats
path: root/pym/_emerge
Commit message (Collapse)AuthorAgeFilesLines
...
* Make depgraph.select_files() recursively expand sets given asZac Medico2007-10-311-1/+8
| | | | | | | | | arguments so that containment tests in _get_parent_sets() properly match atoms in nested sets (like if world contains system). Otherwise, atoms from nested sets would get recorded in the world file. svn path=/main/trunk/; revision=8350
* Defer selection of package dependency atoms until they areZac Medico2007-10-311-14/+26
| | | | | | | | | actually needed since the appropriate atom selection behavior can change between the time that the package is initially added to the graph and when it's dependencies are traversed (like when --consistent is enabled). svn path=/main/trunk/; revision=8347
* Gather some ignored dependencies so that they can be properlyZac Medico2007-10-311-6/+16
| | | | | | processed by the depgraph when "conistent" mode is enabled. svn path=/main/trunk/; revision=8346
* Remove a few unused depgraph attributes.Zac Medico2007-10-311-13/+0
| | | | svn path=/main/trunk/; revision=8345
* Fix "args" set handling wrt $ROOT in depgraph._complete_graph().Zac Medico2007-10-301-1/+2
| | | | svn path=/main/trunk/; revision=8344
* Implement a "consistent" depgraph parameter (enabled by --consistent)Zac Medico2007-10-301-4/+151
| | | | | | | | | | that can be used ensure that installation of new packages does not break any deep dependencies of required sets (args, system, or world). Unfortunately, the performance penalty for small dep calculations is too great to enable this parameter by default. At least it will be useful for testing backtracking behavior when that is implemented. svn path=/main/trunk/; revision=8341
* Fix --depclean to use SetConfig.getSetAtoms() and also fix aZac Medico2007-10-281-8/+5
| | | | | | broken reference to packagesets which is now settings.sets. svn path=/main/trunk/; revision=8334
* Optimize stdout_spinner.update() methods so that they don'tZac Medico2007-10-281-3/+22
| | | | | | waste cpu time by flushing ouput to the tty too frequently. svn path=/main/trunk/; revision=8332
* Sort all dbapi.cp_list() results in ascending order andZac Medico2007-10-281-20/+6
| | | | | | | cache the results when possible. The order is preserved in dbapi.match() so those results are also sorted. svn path=/main/trunk/; revision=8329
* Replace depgraph._slot_node_map with _slot_pkg_map soZac Medico2007-10-271-35/+22
| | | | | | that it's easier to get existing Package instances. svn path=/main/trunk/; revision=8324
* Make depgraph._select_atoms() more flexible by allowingZac Medico2007-10-271-5/+9
| | | | | | the repositories to be passed in as a parameter. svn path=/main/trunk/; revision=8319
* Reuse an existing EmergeConfig instance instead ofZac Medico2007-10-271-1/+1
| | | | | | constructing a new one. svn path=/main/trunk/; revision=8318
* Fix broken $ROOT handling for setconfig in the MergeTaskZac Medico2007-10-271-6/+10
| | | | | | constructor. svn path=/main/trunk/; revision=8317
* Make emerge add sets to the world file as one would expect.Zac Medico2007-10-261-4/+16
| | | | svn path=/main/trunk/; revision=8308
* Prevent premature expansion of old-style virtualsZac Medico2007-10-261-0/+10
| | | | | | inside depgraph.select_files(). svn path=/main/trunk/; revision=8306
* Optimize the algorithm used for expansion of setZac Medico2007-10-261-4/+13
| | | | | | arguments into atoms. svn path=/main/trunk/; revision=8305
* use SetConfig.getSetAtoms instead of PackageSet.getAtoms for expanding sets ↵Marius Mauch2007-10-261-2/+3
| | | | | | to allow recursion, and drop the default 'sets/' prefix for setnames svn path=/main/trunk/; revision=8302
* use a @ prefix for sets, and replace world/system with their real prefixed ↵Marius Mauch2007-10-261-3/+10
| | | | | | names if found on the commandline svn path=/main/trunk/; revision=8301
* For the emergelog message, send in the original list ofZac Medico2007-10-251-3/+3
| | | | | | arguments that exists before expansion of sets. svn path=/main/trunk/; revision=8290
* Filter atoms that come from sets when generatingZac Medico2007-10-251-4/+9
| | | | | | the list of atoms to record in the world file. svn path=/main/trunk/; revision=8288
* For the global AUTOCLEAN, pass an empty list into unmerge()Zac Medico2007-10-251-1/+1
| | | | | | so it behaves like it used to. svn path=/main/trunk/; revision=8287
* Spit out a depgraph._get_existing_pkg() method for getting anZac Medico2007-10-251-19/+26
| | | | | | existing Package instance added to the graph for a given SLOT. svn path=/main/trunk/; revision=8286
* Make the Package class generate the digraph nodes.Zac Medico2007-10-251-21/+29
| | | | svn path=/main/trunk/; revision=8285
* Fix inverted logic error.Zac Medico2007-10-251-1/+1
| | | | svn path=/main/trunk/; revision=8284
* Convert depgraph creation from using recursive calls toZac Medico2007-10-241-52/+86
| | | | | | | using a stack of dependencies which will be more suitable for implementation of backtracking. svn path=/main/trunk/; revision=8283
* Add back support for greedy SLOTs when --update is enabled asZac Medico2007-10-241-0/+43
| | | | | | | per bug #150361. This is currently disabled for sets since greedy SLOT atoms could be a property of the set itself. svn path=/main/trunk/; revision=8282
* Add back support for helpful `emaint --check world` suggestionsZac Medico2007-10-241-8/+32
| | | | | | and also show package masking reasons when appropriate. svn path=/main/trunk/; revision=8269
* Add back support for detecting if the world file containsZac Medico2007-10-241-6/+13
| | | | | | atoms that match packages in package.provided. svn path=/main/trunk/; revision=8268
* Add back support for handling missing system/world atomsZac Medico2007-10-241-16/+24
| | | | | | | | | that was removed with depgraph.xcreate(). This doesn't have support for mapping atoms back to the original sets yet, but at least a masked or unavailable system/world atom won't compeletely break the depgraph now. svn path=/main/trunk/; revision=8267
* Replace sys.exit() calls with return statements in emerge_main().Zac Medico2007-10-241-7/+7
| | | | svn path=/main/trunk/; revision=8266
* Remove --update greedy SLOTs code from depgraph.select_files()Zac Medico2007-10-241-34/+0
| | | | | | | | so that any desired SLOTs have to be pulled in explicitly. Any SLOTs that are not explicitly pulled in will be removed by --depclean. svn path=/main/trunk/; revision=8265
* Make world atoms non-greedy for SLOTs in action_depclean()Zac Medico2007-10-241-19/+1
| | | | | | | since users can simply add SLOT atoms to world for any specific SLOTs that they want to keep. svn path=/main/trunk/; revision=8264
* remove 'system' and 'world' as actions, and remove most of the special case ↵Marius Mauch2007-10-241-133/+21
| | | | | | code as well svn path=/main/trunk/; revision=8263
* Fix selective logic to work properly with masked packages.Zac Medico2007-10-231-2/+2
| | | | svn path=/main/trunk/; revision=8262
* Match packages against arguments earlier inZac Medico2007-10-231-9/+9
| | | | | | | depgraph._select_package() so that corrupt PROVIDE is detected sooner. svn path=/main/trunk/; revision=8261
* Fix logic for the "selective" depgraph parameter soZac Medico2007-10-231-11/+28
| | | | | | | | that it behaves correctly in cases where installed packages provide old-style virtuals but none of the available packages do. svn path=/main/trunk/; revision=8260
* move base classes for package sets into a separate moduleMarius Mauch2007-10-231-1/+2
| | | | svn path=/main/trunk/; revision=8257
* make 'world' and 'system' behave like their sets/ counterpartsMarius Mauch2007-10-231-2/+1
| | | | svn path=/main/trunk/; revision=8254
* In depgraph.create(), if a direct circular dependency isZac Medico2007-10-221-6/+9
| | | | | | | | not an unsatisfied buildtime dependency then drop it here since otherwise it can skew the merge order calculation in an unwanted way. svn path=/main/trunk/; revision=8233
* In depgraph.create(), don't ignore direct circular dependenciesZac Medico2007-10-221-8/+7
| | | | | | | | anymore since altlist() is able to handle it properly in cases where the dependency is satisfied. If the dep is unsatisfied then it can not be ignored. svn path=/main/trunk/; revision=8225
* Combine depgraph._select_dep() into create() so thatZac Medico2007-10-211-107/+75
| | | | | | | | create() simply calls itself recursively. In order to implement backtracking, create() will eventually operate on a stack instead of calling itself. svn path=/main/trunk/; revision=8221
* Always pass package metadata into depgraph.create() soZac Medico2007-10-211-13/+8
| | | | | | it doesn't have to get it itself. svn path=/main/trunk/; revision=8220
* Do a loop over each dependency type to simplifyZac Medico2007-10-211-19/+11
| | | | | | select_dep() calls. svn path=/main/trunk/; revision=8219
* Don't catch a ValueError if it isn't the type that's expectedZac Medico2007-10-211-0/+3
| | | | | | from portage.cpv_expand(). svn path=/main/trunk/; revision=8218
* fix commentMarius Mauch2007-10-211-1/+1
| | | | svn path=/main/trunk/; revision=8204
* restore proper call logicMarius Mauch2007-10-211-1/+3
| | | | svn path=/main/trunk/; revision=8201
* Remove uneeded "arg" and "addme" parameters where possible.Zac Medico2007-10-211-7/+4
| | | | svn path=/main/trunk/; revision=8199
* Use a "depth" parameter to track depth of recursion relativeZac Medico2007-10-211-25/+23
| | | | | | to the nearest argument atom. svn path=/main/trunk/; revision=8198
* Split the "arg" parameter out of depgraph.select_dep() soZac Medico2007-10-211-25/+26
| | | | | | | that it's used purely for processing atoms that are pulled in by parent packages. svn path=/main/trunk/; revision=8197
* Make depgraph.xcreate() use the filtered repo to determineZac Medico2007-10-211-13/+13
| | | | | | | availablility of system/world atoms so that the raise_on_missing parameter can be removed from depgraph.select_dep(). svn path=/main/trunk/; revision=8194