summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Make file_get() redirect FETCHCOMMAND output to stdout just likeZac Medico2008-04-111-1/+6
| | | | | | portage.fetch() does. Thanks to Ramereth for reporting. svn path=/main/trunk/; revision=9844
* Fix 'undefined name' errors found by pyflakes.Zac Medico2008-04-111-3/+3
| | | | svn path=/main/trunk/; revision=9842
* Fix the code from the previous commit so that it doesn't try to pullZac Medico2008-04-111-2/+7
| | | | | | | USE from a portdbapi instance (like when called by repoman) since portdbapi doesn't return USE in aux_get() calls. svn path=/main/trunk/; revision=9840
* When dep_check() expands new-style virtuals, use USE flags from aux_getZac Medico2008-04-111-2/+6
| | | | | | | | calls to evaluate any conditionals that the depstrings might contain. This works properly for ebuilds now that aux_get() is backed by Package instances containing the correct USE. svn path=/main/trunk/; revision=9839
* Make doebuild() bail out early with a PermissionDenied error if thereZac Medico2008-04-111-0/+10
| | | | | | is no write access to $PKGDIR. svn path=/main/trunk/; revision=9837
* Remove unused infodir variable.Zac Medico2008-04-111-2/+0
| | | | svn path=/main/trunk/; revision=9835
* Remove all calls to config.load_infodir() since it doesn't seemZac Medico2008-04-111-5/+0
| | | | | | | to server any purpose now that the complete environment is loaded from environment.bz2. svn path=/main/trunk/; revision=9834
* In config.setcpv() and load_infodir(), always set known good valuesZac Medico2008-04-111-2/+14
| | | | | | for CATEGORY and PF, since corruption of these can cause problems. svn path=/main/trunk/; revision=9832
* Copy group mode bits from $PKGDIR when creating subdirectories.Zac Medico2008-04-111-31/+30
| | | | svn path=/main/trunk/; revision=9827
* Tweak --buildpkgonly and fakeroot logic so that --buildpkgonly can beZac Medico2008-04-112-8/+15
| | | | | | used by a non-root user to build binary packages with fakeroot. svn path=/main/trunk/; revision=9825
* Nest the DepcheckCompositeDB class inside the depgraph class since it'sZac Medico2008-04-101-86/+86
| | | | | | not intended for use elsewhere. svn path=/main/trunk/; revision=9823
* Rename variable pkg_cpv to pkg_str.Zac Medico2008-04-101-7/+7
| | | | svn path=/main/trunk/; revision=9821
* Fix "pkg" variable name collisions in depgraph.display().Zac Medico2008-04-101-13/+12
| | | | svn path=/main/trunk/; revision=9819
* Make the CHOST visibility check tolerant of missing CHOST metadata.Zac Medico2008-04-101-7/+9
| | | | svn path=/main/trunk/; revision=9817
* Bug #217122 - When waiting for a parallel-fetch download to complete,Zac Medico2008-04-101-2/+9
| | | | | | show a more friendly and informative message. svn path=/main/trunk/; revision=9815
* Remove an unused function.Zac Medico2008-04-101-11/+0
| | | | svn path=/main/trunk/; revision=9810
* Implement expansion of catgories in DepcheckCompositeDB.match() for oldZac Medico2008-04-101-1/+42
| | | | | | installed packages that may contain atoms that are not fully qualified. svn path=/main/trunk/; revision=9808
* Iterate over a copy of the digraph nodes so that removal can't breakZac Medico2008-04-101-2/+2
| | | | | | the iterator. svn path=/main/trunk/; revision=9799
* Make sure that everything except Package nodes is ignored when doingZac Medico2008-04-101-4/+12
| | | | | | the --buildpkgonly digraph.hasallzeros() check. svn path=/main/trunk/; revision=9797
* Use cached Package instances in depgraph.display().Zac Medico2008-04-101-11/+4
| | | | svn path=/main/trunk/; revision=9794
* * Make depclean/prune use cached Package instances for visibility checks.Zac Medico2008-04-101-4/+18
| | | | | | | | | * Make FakeVartree wrap dbapi.match() to make sure the metadata in Package instances gets updated for any cpv that is returned from a match() call, since the metadata can be accessed directly from the Package instance instead of via aux_get(). svn path=/main/trunk/; revision=9789
* Make FakeVartree use PackageVirtualDbapi instead of fakedbapi so that it canZac Medico2008-04-101-7/+23
| | | | | | populate and utilize a cache of Package instances. svn path=/main/trunk/; revision=9788
* Improve used of cached Package instances in depgraph._select_pkg_from_graph().Zac Medico2008-04-101-13/+4
| | | | svn path=/main/trunk/; revision=9787
* Replace the fakdbapi class that is used to track depgraph state with aZac Medico2008-04-101-18/+103
| | | | | | | | similar PackageVirtualDbapi class that uses Package instances internally. This eliminates some redundancy since the Package instances can be reused elsewhere, unlike the internal data structures used by fakedbapi. svn path=/main/trunk/; revision=9786
* Add some docs for the DepcheckCompositeDB class.Zac Medico2008-04-091-0/+7
| | | | svn path=/main/trunk/; revision=9785
* When checking atoms without categories against the installed packages, justZac Medico2008-04-091-2/+3
| | | | | | check for existence of the cat/pn rather that a full match. svn path=/main/trunk/; revision=9779
* Fix the docstring for depgraph._dep_expand().Zac Medico2008-04-091-1/+4
| | | | svn path=/main/trunk/; revision=9777
* Fix minor issues in the calculation of the number of parents omitted fromZac Medico2008-04-091-8/+5
| | | | | | the slot collision display. svn path=/main/trunk/; revision=9775
* When pruning the list of parents for the slot collision display, alwaysZac Medico2008-04-091-3/+12
| | | | | | | show parents that themselves have been pulled into collision slots, since those are more relevant that others. (branches/2.1.2 r9773) svn path=/main/trunk/; revision=9774
* Make DepcheckCompositeDB cache Package instances for aux_get() calls.Zac Medico2008-04-091-5/+4
| | | | svn path=/main/trunk/; revision=9771
* When depgraph.select_files() expands an atom category, in case of an old-styleZac Medico2008-04-091-2/+2
| | | | | | virtual, defer category expansion so that the depgraph has more choices. svn path=/main/trunk/; revision=9769
* Create a new depgraph._dep_expand() method for select_files() to expandZac Medico2008-04-092-37/+62
| | | | | | atoms that have no category. svn path=/main/trunk/; revision=9765
* Handle issues with newlines in elog messages that can trigger an unhandledZac Medico2008-04-092-4/+12
| | | | | | | | | ValueError to be raised from a split() call inside collect_ebuild_messages(): * Use \0 to delimit messages, so that that elog messages containing newlines are handled correctly. * Handle a potential ValueError when splitting the message type. svn path=/main/trunk/; revision=9763
* Make depgraph.select_files() detect when a package name given as an argumentZac Medico2008-04-091-0/+23
| | | | | | | is ambiguous due to the existence of a new-style virtual with the same name (cpv_expand() will not always raise a ValueError in cases like this). svn path=/main/trunk/; revision=9762
* Split out a depgraph method to check if a specific new-style virtualZac Medico2008-04-081-9/+12
| | | | | | package exists. svn path=/main/trunk/; revision=9761
* Bug #162542 - When checking permissions inside CCACHE_DIR for compatibilityZac Medico2008-04-081-4/+26
| | | | | | | with FEATURES=userpriv, check the permissions on files inside the directory to decide whether to fix the permissions. svn path=/main/trunk/; revision=9759
* Bug #197810 - Don't automatically downgrade packages for which availableZac Medico2008-04-082-10/+14
| | | | | | | | matching versions are masked by corruption, but do automatically downgrade installed packages that themselves have a valid mask such as from package.mask. svn path=/main/trunk/; revision=9756
* Fix --update greedy atoms logic so that it only pulls in packages thatZac Medico2008-04-081-1/+1
| | | | | | actually match the given atom. svn path=/main/trunk/; revision=9755
* Fix a little issue in the code from bug #197905 that causes some elogZac Medico2008-04-081-0/+2
| | | | | | messages to get lost. svn path=/main/trunk/; revision=9747
* Remove the depgraph._get_arg_for_pkg() method since _iter_atoms_for_pkg()Zac Medico2008-04-081-16/+3
| | | | | | does the job. svn path=/main/trunk/; revision=9745
* Remove unused iter_atoms() function.Zac Medico2008-04-081-15/+0
| | | | svn path=/main/trunk/; revision=9744
* For repoman, only cache the metadata necessary for visibilityZac Medico2008-04-071-0/+5
| | | | | | checks in order to reduce memory consumption. svn path=/main/trunk/; revision=9743
* When reading and writing the Packages index file, translate metadata keysZac Medico2008-04-072-7/+16
| | | | | | | | on the fly. Current translations: DESC <-> DESCRIPTION REPO <-> repository svn path=/main/trunk/; revision=9742
* * Optimize metadata caching in pordbapi and bindbapi so that cache isZac Medico2008-04-075-50/+81
| | | | | | | | never pulled for the same package twice. * Cache a Package instances constructed during package selection and reuse them during later package selections. svn path=/main/trunk/; revision=9741
* Handle empty KEYWORDS in the Packages file.Zac Medico2008-04-071-0/+1
| | | | svn path=/main/trunk/; revision=9740
* Fix broken IUSE defaults handling when filtering USE for the Packages file.Zac Medico2008-04-071-1/+1
| | | | svn path=/main/trunk/; revision=9739
* Move all the --update greedy slot logic to depgraph.select_files().Zac Medico2008-04-071-13/+6
| | | | svn path=/main/trunk/; revision=9738
* Move virtuals logic from DepcheckCompositeDB.match() toZac Medico2008-04-071-16/+15
| | | | | | | depgraph._iter_atoms_for_pkg() since it's more generally useful there. svn path=/main/trunk/; revision=9737
* Fix variable name collision in DepcheckCompositeDB.match().Zac Medico2008-04-061-2/+2
| | | | svn path=/main/trunk/; revision=9736
* Fix DepcheckCompositeDB.match() so that it doesn't assume that everyZac Medico2008-04-061-17/+5
| | | | | | DependencyArg instance has an "atom" attribute. svn path=/main/trunk/; revision=9735