summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Add a check for redundant cd "${S}" statements on the firstZac Medico2007-11-012-1/+23
| | | | | | | line of src_(compile|install|test) ebuild methods. Thanks to Petteri Räty <betelgeuse@gentoo.org> for this patch. svn path=/main/trunk/; revision=8351
* 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 license filtering for xmatch minimum-visible andZac Medico2007-10-301-10/+21
| | | | | | | | bestmatch-visible. Also, make the gvisible license filtering conditional on config.local_config since repoman doesn't do license filtering. svn path=/main/trunk/; revision=8343
* Optimize xmatch "bestmatch-visible" to do fewer metadataZac Medico2007-10-301-7/+6
| | | | | | | accesses by using the same code as "minimum-visible" but with a reverse iterator. svn path=/main/trunk/; revision=8342
* 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
* Use rstrip("\n") to remove trailing newlines fromZac Medico2007-10-291-2/+1
| | | | | | CONTENTS lines. svn path=/main/trunk/; revision=8338
* Rewrite the dblink.getcontents() code to use str.split(" ")Zac Medico2007-10-291-35/+37
| | | | | | | | | | for splitting CONTENTS lines so that even file paths that end with spaces can be handled. This patch makes the fix for bug #196836#c6 more complete. Some code for parsing old malformed symlink entries has been removed sinces it's probably not useful or worth maintaining anymore. svn path=/main/trunk/; revision=8337
* Make portdbapi.cp_list() use os.listdir() instead ofZac Medico2007-10-291-1/+5
| | | | | | | | portage.listdir() since portage.listdir() has unnecessary overhead and it's cache isn't needed since cp_list() has it's own cache. svn path=/main/trunk/; revision=8336
* Fix PackageSet.getAtoms() and getNonAtoms() so that theyZac Medico2007-10-281-6/+10
| | | | | | don't return references to private data structures. svn path=/main/trunk/; revision=8335
* 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
* Fix SetConfig.getSetAtoms() to stop initializing ignorelistZac Medico2007-10-281-3/+6
| | | | | | | in the parameter list since otherwise the ignorelist persists between calls and causes unpredictable results for callers. svn path=/main/trunk/; revision=8333
* 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
* Fix cp_list() to prevent it from returning a referenceZac Medico2007-10-281-2/+2
| | | | | | to one of it's internal lists. svn path=/main/trunk/; revision=8331
* Sort all dbapi.cp_list() results in ascending order andZac Medico2007-10-285-38/+41
| | | | | | | 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
* In portage.fetch(), condense digest check ouput to a singleZac Medico2007-10-261-2/+5
| | | | | | line for all digests. svn path=/main/trunk/; revision=8316
* Optimize repoman to share portdbapi.cp_list() resultsZac Medico2007-10-261-7/+16
| | | | | | | | | between all profiles since those results never change. The cached results also propagate to the xmatch match-all when appropriate (old-style virtuals are excluded since they are profile dependent). svn path=/main/trunk/; revision=8313
* Add missing break statement for xmatch minimum-visible.Zac Medico2007-10-261-0/+1
| | | | svn path=/main/trunk/; revision=8310
* Optimize repoman visibility checks to access as littleZac Medico2007-10-262-5/+75
| | | | | | | | | | metadata as possible. (improves performance especially in cases where metadata needs to be generated). This works by starting at the lowest version since that's most likely to have keywords and it returns as soon as the first visible package is found. svn path=/main/trunk/; revision=8309
* Make emerge add sets to the world file as one would expect.Zac Medico2007-10-262-8/+31
| | | | svn path=/main/trunk/; revision=8308
* Allow sets to get through world file validation andZac Medico2007-10-262-5/+15
| | | | | | | | expand properly. It's now possible to put @system in the world file and get the old behavior where world includes system. svn path=/main/trunk/; revision=8307
* 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
* break potential cycles in set expansionMarius Mauch2007-10-261-2/+4
| | | | svn path=/main/trunk/; revision=8303
* use SetConfig.getSetAtoms instead of PackageSet.getAtoms for expanding sets ↵Marius Mauch2007-10-262-3/+4
| | | | | | 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-262-4/+13
| | | | | | names if found on the commandline svn path=/main/trunk/; revision=8301
* Allow sets to contain non-atomsMarius Mauch2007-10-252-1/+16
| | | | svn path=/main/trunk/; revision=8300
* Correct expected split counts for CONTENTS lines.Zac Medico2007-10-251-3/+3
| | | | svn path=/main/trunk/; revision=8294
* Handle a potential IndexError.Zac Medico2007-10-251-1/+3
| | | | svn path=/main/trunk/; revision=8293
* Remove obsolete whitespace handling code for "obj" filenamesZac Medico2007-10-251-1/+1
| | | | | | in CONTENTS. svn path=/main/trunk/; revision=8292
* Handle multiple consecutive spaces in filenames as perZac Medico2007-10-251-0/+22
| | | | | | bug #196836#c6. svn path=/main/trunk/; revision=8291
* 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
* If the title string is too big then xtermTitle() canZac Medico2007-10-251-0/+5
| | | | | | | | | misbehave by causing the terminal to echo some of the characters and generate a "beep" sound. This is easily triggered by doing things like `emerge world` now since all the the atoms are expanded. svn path=/main/trunk/; revision=8289
* 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
* Fix broken import.Zac Medico2007-10-241-1/+2
| | | | svn path=/main/trunk/; revision=8270
* 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