summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Factor vdb loading code out of the depgraph constructor, since this procedureZac Medico2009-10-231-18/+44
| | | | | | | is slow and it generates spinner output, which isn't very nice behavior for a constructor. Now it's called on-demand by various methods when necessary. svn path=/main/trunk/; revision=14705
* Factor out duplicate "These are the packages that would be merged",Zac Medico2009-10-233-71/+63
| | | | | | "Calculating dependencies", and spinner cleanup code. svn path=/main/trunk/; revision=14704
* Add a --unordered-display option for use with --tree. This allows the displayZac Medico2009-10-235-7/+60
| | | | | | | to be optimized differently since the merge order is not preserved. Thanks to Sebastian Mingramm (few) for the initial patch. svn path=/main/trunk/; revision=14703
* Factor the --tree code out of depgraph.display().Zac Medico2009-10-231-136/+146
| | | | svn path=/main/trunk/; revision=14702
* Fix license_groups parsing to stack the lists, so license_groups from overlaysZac Medico2009-10-191-2/+4
| | | | | | | extend groups from the main tree instead of overwritting them. Thanks to Vlastimil Babka <caster@g.o> for reporting. svn path=/main/trunk/; revision=14696
* Remove the docs for the extend, remove, and intersect attributesZac Medico2009-10-191-10/+2
| | | | | | that are not supported now. svn path=/main/trunk/; revision=14695
* drop IMAGE -- people have had years to catch upMike Frysinger2009-10-193-6/+2
| | | | svn path=/main/trunk/; revision=14694
* Bug #259697 - Update IUSE.invalid docs for glep 56. Thanks to Alec WarnerZac Medico2009-10-191-1/+1
| | | | | | <antarus@g.o> for this patch. svn path=/main/trunk/; revision=14681
* Add support for display of nested sets in --depclean and --prune reverseZac Medico2009-10-192-42/+62
| | | | | | | dependency output. This also fixes a bug from the 'selected' set changes which could cause the system set to be disregarded in some cases. svn path=/main/trunk/; revision=14680
* Remove support for 'extend', 'remove', and 'intersect' sets.conf sectionZac Medico2009-10-181-26/+3
| | | | | | | | | | | | | | | | attributes in SetConfig.getSetAtoms() since the current implementation does not meet user expectations, as mentioned in bug #253802, comment #5: Package set operators currently operate on atoms, but what users really need is for them to operate on the packages themselves. This will allow one set to add or subtract packages from another even though the sets to not use the exact same atoms to refer to the given packages. I imagine the way this should be done is to create a mapping of atom -> package for each set, perform the intersection using the packages, and then map the package intersection back into a set of atoms. svn path=/main/trunk/; revision=14679
* Revert r14677 since it doesn't interact well with the 'extend', 'remove', andZac Medico2009-10-181-16/+11
| | | | | | 'intersect' code in SetConfig.getSetAtoms(). svn path=/main/trunk/; revision=14678
* Add a boolean expand_nested_sets parameter to SetConfig.getSetAtoms(). ThisZac Medico2009-10-181-14/+19
| | | | | | | will be useful for adding support to the dependency graph for keeping track of precisely which nested set each atom comes from. svn path=/main/trunk/; revision=14677
* Move filtering of misc bash variables from save_ebuild_env() toZac Medico2009-10-182-6/+7
| | | | | | | filter_readonly_variables(). Add additional variables found in the output of `env -i bash -c 'declare -p'`. svn path=/main/trunk/; revision=14676
* Fix messages broken in r14616. Thanks to Arfrever for reporting and thanks toZac Medico2009-10-181-4/+3
| | | | | | Jonathan Callen <abcd@g.o> for this patch. svn path=/main/trunk/; revision=14675
* Convert --select to boolean True when enabled, so --resume code handlesZac Medico2009-10-181-0/+1
| | | | | | it like other boolean options. svn path=/main/trunk/; revision=14667
* Warn aabout default world and system set configuration being used whenZac Medico2009-10-181-0/+1
| | | | | | | sets.conf is corrupt. Thanks to Thanks to Sebastian Mingramm (few) for the suggestion. svn path=/main/trunk/; revision=14666
* Add a --use-ebuild-visibility option, for using unbuilt ebuild metadataZac Medico2009-10-184-1/+25
| | | | | | | in visibility checks for built ebuilds. Thanks to Sebastian Mingramm (few) for reporting the problem and testing the patch. svn path=/main/trunk/; revision=14665
* Fix breakage in DEFINED_PHASES code.Zac Medico2009-10-181-2/+2
| | | | svn path=/main/trunk/; revision=14664
* Remove reference to non-existent _source_ebuild function.Zac Medico2009-10-181-1/+0
| | | | svn path=/main/trunk/; revision=14663
* Preserve variables which have been set in global scope using 'declare'.Arfrever Frehtes Taifersar Arahesis2009-10-182-67/+64
| | | | svn path=/main/trunk/; revision=14662
* Ind SetConfig.getSetAtoms(), don't assume the set has a 'creator' attribute,Zac Medico2009-10-181-1/+4
| | | | | | | since if sets.conf is corrupt then emerge generates fallback sets without the 'creator' attribute. svn path=/main/trunk/; revision=14660
* Call config._init_dirs() from emerge so that it's not called every timeZac Medico2009-10-182-2/+1
| | | | | | the portage api is imported. svn path=/main/trunk/; revision=14631
* Automatically create a fallback setconfig, so emerge isn't crippled due toZac Medico2009-10-181-25/+51
| | | | | | | | misssing/corrupt/outdated sets.conf. This is especially important since WorldSet has been renamed to WorldSelectedSet, and thus new and old sets.conf files are incompatible. svn path=/main/trunk/; revision=14630
* Bug #227225 - Add *DEPEND.badtilde warning for ~ operator used with non-zeroZac Medico2009-10-182-0/+21
| | | | | | revision. Thanks to David Leverton <levertond@googlemail.com> for this patch. svn path=/main/trunk/; revision=14629
* Make cpv_getkey() use catpkgsplit() insead of a separate regex.Zac Medico2009-10-181-4/+3
| | | | svn path=/main/trunk/; revision=14628
* Fix repoman breakage from previous commit.Zac Medico2009-10-171-4/+4
| | | | svn path=/main/trunk/; revision=14627
* Inside dep_zapdeps(), detect cases such as || ( foo:1 foo:2 ), where we wantZac Medico2009-10-171-15/+70
| | | | | | | | | | to prefer the atom which matches the higher version rather than the atom furthest to the left. Sorting is done separately for each of choice_bins, so as not to interfere with the ordering of the bins. Because of the bin separation, the main function of this code is to allow --depclean to remove old slots (rather than to pull in new slots). svn path=/main/trunk/; revision=14626
* Bug #273636 - Add doins and newins support for symlink preservation inZac Medico2009-10-172-7/+30
| | | | | | | EAPI 3. Thanks to Jonathan Callen <abcd@g.o> for the initial patch (I added EAPI conditionals in order to share code between all EAPIs). svn path=/main/trunk/; revision=14625
* Bug #273643 - Don't export AA in EAPI 3. Thanks to Jonathan Callen <abcd@g.o>Zac Medico2009-10-171-0/+5
| | | | | | for the initial patch (I moved the code from spawnebuild to config.environ). svn path=/main/trunk/; revision=14624
* Use short substitution syntax in use_with() and use_enable(). Thanks toZac Medico2009-10-171-18/+4
| | | | | | Jonathan Callen <abcd@g.o> for this patch. svn path=/main/trunk/; revision=14623
* Fix einstall() change from previous commit, for compatibility with emptyZac Medico2009-10-171-1/+1
| | | | | | but set CONF_PREFIX. Thanks to Jonathan Callen <abcd@g.o> for reporting. svn path=/main/trunk/; revision=14622
* Use [ "${foo+set}" = set ] instead of "${foo-unset}" != unset ], to avoidZac Medico2009-10-171-18/+18
| | | | | | | any possility of ambiguity. Thanks to Jonathan Callen <abcd@g.o> for the suggestion. svn path=/main/trunk/; revision=14621
* Fix WorldHandler to use the "selected" set.Zac Medico2009-10-171-2/+2
| | | | svn path=/main/trunk/; revision=14620
* In dyn_unpack, check mtimes on $A instead of $AA. Thanks to Jonathan CallenZac Medico2009-10-171-1/+1
| | | | | | <abcd@g.o> for reporting. svn path=/main/trunk/; revision=14619
* Make phase variable local in has_phase_defined_up_to().Zac Medico2009-10-171-0/+1
| | | | svn path=/main/trunk/; revision=14618
* Simplify the conditionals from bug #273648. Thanks to Jonathan CallenZac Medico2009-10-172-18/+14
| | | | | | <abcd@g.o> for this patch. svn path=/main/trunk/; revision=14617
* Bug #273648 - EAPI 3 - the following condtions must be met:Zac Medico2009-10-171-13/+49
| | | | | | | | | | | | 1. The A variable contains no items. 2. The phase function in question is not in DEFINED_PHASES. 3. None of the phase functions unpack, prepare, configure, compile or install, if supported by the EAPI in question and occurring prior to the phase about to be executed, are in DEFINED_PHASES. Thanks to Jonathan Callen <abcd@g.o> for this patch. svn path=/main/trunk/; revision=14616
* Bug #287869 - Add a --selective[=n] option (inverse of --oneshot). This isZac Medico2009-10-163-0/+27
| | | | | | | useful if you want to use EMERGE_DEFAULT_OPTS to make --oneshot behavior default. svn path=/main/trunk/; revision=14615
* Bug #266454 - Make @world an all-inclusive set once again, like it was priorZac Medico2009-10-1613-61/+80
| | | | | | | | to portage-2.2_rc* releases. In addition to @system, @world now includes a @selected set which represents user-selected "world" packages and sets that saved in /var/lib/portage/world{,sets}. svn path=/main/trunk/; revision=14614
* Remove soname_cache inside calc_depclean() since LinkageMap caches thatZac Medico2009-10-161-5/+1
| | | | | | already. svn path=/main/trunk/; revision=14613
* Ensure that /dev/std* streams have appropriate sandbox permission forZac Medico2009-10-161-0/+6
| | | | | | | bug #288863. This can be removed after sandbox is fixed and portage depends on the fixed version. svn path=/main/trunk/; revision=14612
* TODO: Make resume_depgraph() return reasons for dropped_tasks, forZac Medico2009-10-161-0/+1
| | | | | | display/logging. svn path=/main/trunk/; revision=14611
* Bug #289068 - Avoid KeyError: USE when depgraph calls _getMissingLicenses.Zac Medico2009-10-161-0/+3
| | | | svn path=/main/trunk/; revision=14610
* Add back info_vars docs accidentally removed in r14587. Thanks to Arfrever forZac Medico2009-10-151-0/+3
| | | | | | reporting. svn path=/main/trunk/; revision=14609
* Add the "test" flag to implicit IUSE, so handling of FEATURES=test isZac Medico2009-10-151-1/+8
| | | | | | | | consistent regardless of explicit IUSE. Users may use use.mask and package.use.mask to control FEATURES=test for all ebuilds, regardless of explicit IUSE. svn path=/main/trunk/; revision=14607
* Only call _test_pty_eof() on Linux, since it seems to hang on most otherZac Medico2009-10-142-7/+25
| | | | | | | kernels. This should fix the hang reported on FreeBSD here: http://archives.gentoo.org/gentoo-alt/msg_d81c5e8c6dd6849312ecb048feb41c5b.xml svn path=/main/trunk/; revision=14606
* Add some examples for ACCEPT_LICENSE and ACCEPT_PROPERTIES.Zac Medico2009-10-141-0/+18
| | | | svn path=/main/trunk/; revision=14601
* Bug #288906 - Fix Scheduler._dblink_elog() to always append messages to theZac Medico2009-10-141-14/+19
| | | | | | build log if available (regardless whether or not message goes to stdout). svn path=/main/trunk/; revision=14600
* When --depclean pulls in the provider of a library because of installedZac Medico2009-10-141-1/+8
| | | | | | consumers, display the soname(s) of the consumed libraries. svn path=/main/trunk/; revision=14599
* Implement __len__.Zac Medico2009-10-131-0/+5
| | | | svn path=/main/trunk/; revision=14598