summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Fix 'TypeError: not all arguments converted during string formatting'Zac Medico2007-11-051-1/+1
| | | | | | issues with the EbuildNestedDie check. svn path=/main/trunk/; revision=8429
* Make exception strings more informative.Zac Medico2007-11-041-2/+5
| | | | svn path=/main/trunk/; revision=8426
* Make Manifest.create() do some basic validation of ebuildZac Medico2007-11-041-1/+11
| | | | | | file names like portdbapi.cp_list() would do. svn path=/main/trunk/; revision=8423
* In portdbapi.cp_list(), validate the ebuild name to ensureZac Medico2007-11-041-0/+4
| | | | | | that it matches the name of the package. svn path=/main/trunk/; revision=8421
* When evaluating *DEPEND conditionals for the Packages metadataZac Medico2007-11-041-1/+2
| | | | | | | | index, do not use IUSE to filter USE since there is currently no guarantee that IUSE properly defines all of the necessary flags. svn path=/main/trunk/; revision=8420
* Clean up ACCEPT_KEYWORDS incremental stacking logic andZac Medico2007-11-041-36/+37
| | | | | | fix some minor inconsistencies. svn path=/main/trunk/; revision=8418
* In fetch(), replace checksum_failure_counts dict with singleZac Medico2007-11-041-8/+6
| | | | | | int counter. svn path=/main/trunk/; revision=8416
* Make fetch() behave like the ebuild has RESTRICT="primaryuri"Zac Medico2007-11-041-1/+30
| | | | | | | | after 2 checksum failures for a fetched file. This should increase the probability of fetching the correct file before the maximum number of tries is reached. svn path=/main/trunk/; revision=8412
* For sanity, pass an actual list of keys into aux_get() insteadZac Medico2007-11-041-3/+4
| | | | | | | of iterating over a set that happens to be mutable (though it remains constant in practice). svn path=/main/trunk/; revision=8410
* Bug #197797 - Do not actively clear o+rx permission bitsZac Medico2007-11-031-4/+1
| | | | | | | | | | | | | | on the /var/lib/portage directory. Only clear the o+w bits. This allows users who aren't in the portage group to have read access to the world file by default, but administrators can explicitly chmod o-rx that directory if necessary, and portage will leave those bits alone. This makes the permission settings in dblink.treewalk() consistent with those that are already defined in config._init_dirs(). svn path=/main/trunk/; revision=8408
* Bug #197965 - Make fetch() bail out after 5 checksumZac Medico2007-11-031-0/+12
| | | | | | | | failures for a particular file since downloading the same file repeatedly from every single available mirror is a waste of bandwidth and time. svn path=/main/trunk/; revision=8403
* Bug #197965 - When fetch() encounters a checksum failure,Zac Medico2007-11-031-12/+46
| | | | | | | | look for an identical file from a previous checksum failure in order to avoid consuming unnecessary disk space with duplicate files. svn path=/main/trunk/; revision=8401
* Fix update_config_files() so that it uses update_dbentry()Zac Medico2007-11-031-31/+30
| | | | | | | to handle update commands since that already supports slotmove commands for SLOT atoms. svn path=/main/trunk/; revision=8397
* 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