summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove redundant code from previous commit.Zac Medico2007-11-031-2/+0
| | | | svn path=/main/trunk/; revision=8392
* Bug #197932 - Make dbapi._cpv_sort_ascending()Zac Medico2007-11-031-9/+10
| | | | | | | preserve explicit -r0 for consistency in findname and aux_get calls. svn path=/main/trunk/; revision=8390
* TODO: Make update_config_files() handle slotmove commands for SLOT atoms.Zac Medico2007-11-031-0/+1
| | | | svn path=/main/trunk/; revision=8387
* In portage.fetch(), condense digest check output to a singleZac Medico2007-11-031-2/+4
| | | | | | line for all digests. svn path=/main/trunk/; revision=8385
* Make portdbapi.gvisible() use portdbapi._aux_cache_keysZac Medico2007-11-021-1/+1
| | | | | | for metadata pulls. svn path=/main/trunk/; revision=8381
* Return early from config.getMaskAtom() as soon as a matchingZac Medico2007-11-021-5/+1
| | | | | | unmask atom is found. svn path=/main/trunk/; revision=8379
* Make sure vardbapi.cp_list() always sorts the results.Zac Medico2007-11-021-1/+1
| | | | svn path=/main/trunk/; revision=8366
* Fix ignore_priority logic in depgraph.altlist() in orderZac Medico2007-11-021-0/+8
| | | | | | | | to handle some cases where it was possible for nodes to be selected without their PDEPENDs being propperly added to the asap_nodes list. svn path=/main/trunk/; revision=8360
* Collapse 2 identical code hunks into 1.Zac Medico2007-11-021-37/+18
| | | | svn path=/main/trunk/; revision=8359
* Optimize merge order to try and select nodes that only haveZac Medico2007-11-021-1/+20
| | | | | | | | | | | | | | | | unsatisfied PDEPEND slightly earlier. This solves a problem with xorg-server being merged too early during an all binary install (since DEPEND is ignored for binaries), triggering built_with_use() calls to fail as reported in bug #189966. Since DEPEND is discarded in cases like this, it is important to exploit the difference between PDEPEND and RDEPEND in order to optimize merge order. Without this optimization, the merge order is technically correct, but not as optimal as it should be and has lots of potential to trigger issues with built_with_use() or similar things that require better optimization of merge order. svn path=/main/trunk/; revision=8358
* In the 'there are no ebuilds to satisfy "foo"' message, discardZac Medico2007-11-011-0/+2
| | | | | | null/ from failed cpv_expand category expansion. svn path=/main/trunk/; revision=8357
* Properly escape { and } characters in regular expressions evenZac Medico2007-11-011-3/+3
| | | | | | though it seems to work either way. svn path=/main/trunk/; revision=8355
* Remove an extra \$ from the EbuildQuote.var_reference regexZac Medico2007-11-011-1/+1
| | | | | | | so that it will properly match things like variable references without braces, like $S. svn path=/main/trunk/; revision=8354
* Make the EbuildUselessCdS check for both quoted and unquoted ${S}Zac Medico2007-11-011-1/+1
| | | | | | | so the user doesn't have to fix quoting before this check will recognize the violation. svn path=/main/trunk/; revision=8353
* Avoid making unnecessary copies of PackageSet._atoms byZac Medico2007-11-012-8/+14
| | | | | | replacing calls to self.getAtoms() with self._load(). svn path=/main/trunk/; revision=8352
* 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