summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Use a new 'usersync' feature to control dropping of privileges for --sync,Zac Medico2009-01-131-1/+2
| | | | | | | since it's fairly common for people to have inconsistent permissions between $PORTDIR and contained files/directories. svn path=/main/trunk/; revision=12496
* Simplify depgraph._select_pkg_from_graph() by using match_pkgs().Zac Medico2009-01-131-11/+4
| | | | svn path=/main/trunk/; revision=12494
* When selecting greedy package inside depgraph._greedy_slots(), make surev2.2_rc21Zac Medico2009-01-121-1/+2
| | | | | | the selected packages have the same cp as the highest selected version. svn path=/main/trunk/; revision=12490
* Mention the blocker_lookahead parameter in the depgraph._greedy_slots()Zac Medico2009-01-121-4/+4
| | | | | | docstring. svn path=/main/trunk/; revision=12488
* When checking for conflicts between packages inside depgraph._greedy_slots(),Zac Medico2009-01-121-4/+4
| | | | | | never double-check any of the pairs. svn path=/main/trunk/; revision=12486
* Invalidate some more caches inside depgraph._set_args().Zac Medico2009-01-121-0/+6
| | | | svn path=/main/trunk/; revision=12484
* Fix comment about the greedy slots code.Zac Medico2009-01-121-2/+2
| | | | svn path=/main/trunk/; revision=12429
* Bug #241808 - When loading options for --resume, discard the --color optionZac Medico2009-01-111-1/+1
| | | | | | so it doesn't override the current setting. svn path=/main/trunk/; revision=12428
* Make the greedy slot atom code from bug #150361 look ahead for conflictsZac Medico2009-01-111-40/+164
| | | | | | | | | | | | between the packages that will be pulled in. If a conflict is discovered, drop the greedy slot atom for the older slot. This solves a problem reported by kde4 users when running `emerge -u <atom>` for a package that has the kdeprefix flag disabled. In this case, the newer slot blocks the older slot. In order to allow the older slot to be automatically uninstalled, the atom for the older slot needs to be excluded from the graph. Thanks to Maciej Mrozowski for testing this patch. svn path=/main/trunk/; revision=12427
* If necessary, use /proc/loadavg to emulate os.getloadavg().Zac Medico2009-01-111-8/+28
| | | | svn path=/main/trunk/; revision=12422
* When displaying parents of unsolved blockers, prefer parents that are notZac Medico2009-01-101-2/+2
| | | | | | directly involved in a conflict. svn path=/main/trunk/; revision=12421
* When displaying parents of unsolved blockers, reduce noise by pruning packagesZac Medico2009-01-101-0/+15
| | | | | | that are only pulled in by other conflict packages. svn path=/main/trunk/; revision=12420
* Inside action_sync(), check for the git binary when necessary and bail outZac Medico2009-01-101-0/+7
| | | | | | | with a helpful message if it doesn't exist. Thanks to Caleb Cushing <xenoterracide@gmail.com> for the initial patch. svn path=/main/trunk/; revision=12417
* When there are unresolved blockers, display the conflicting packages alongZac Medico2009-01-101-1/+81
| | | | | | | | | with the packages that pulled them in (similar to the slot conflict display). This is helpful for troubleshooting cases in which blockers don't solve automatically and the reasons are not apparent from the normal merge list display. svn path=/main/trunk/; revision=12408
* Revert r12405 since it will be more convenient to use a separate graph toZac Medico2009-01-101-8/+14
| | | | | | store blocked package edges. svn path=/main/trunk/; revision=12407
* Remove unused myblocker_parents variable inside depgraph._serialize_tasks().Zac Medico2009-01-101-1/+0
| | | | svn path=/main/trunk/; revision=12406
* Add Blocker -> Blocked Package edges to depgraph._unsolvable_blockers sinceZac Medico2009-01-101-14/+8
| | | | | | these edges will be useful for implementing an enhanced blocker display. svn path=/main/trunk/; revision=12405
* Don't assume that the package metadata contains a "repository" key.Zac Medico2009-01-091-1/+1
| | | | svn path=/main/trunk/; revision=12404
* When merging a package from an overlay, append 'from $repository' to theZac Medico2009-01-091-0/+9
| | | | | | | '>>> Emerging' message (where $repository is the repo_name of the source repository). Thanks to Jeroen Roovers <jer@g.o> for the suggestion. svn path=/main/trunk/; revision=12403
* Make die() to show a message indicating the repository that an ebuild cameZac Medico2009-01-091-3/+3
| | | | | | | | from, and do it during any phase for both ebuilds and binary packages. Now PORTAGE_REPO_NAME is initialized inside config.setcpv() for both ebuilds and binary packages, so it's always available inside ebuild.sh. svn path=/main/trunk/; revision=12402
* Bug #254114 - Fix ValueError triggered by missing COUNTER. Also, fix brokenZac Medico2009-01-071-4/+18
| | | | | | mtime check inside FakeVartree._sync(). svn path=/main/trunk/; revision=12388
* When the set configuration is incomplete, notify the user that this usuallyZac Medico2009-01-061-5/+19
| | | | | | means /usr/share/portage/config/sets.conf is missing or corrupt. svn path=/main/trunk/; revision=12384
* When dropping privileges inside action_sync(), set the umask to preserveZac Medico2009-01-041-0/+4
| | | | | | the group write bit if appropriate. svn path=/main/trunk/; revision=12380
* Inside action_sync(), when running as root, detect if $PORTDIR has non-rootZac Medico2009-01-041-7/+31
| | | | | | uid/gid bits and drop privileges to match the existing bits if appropriate. svn path=/main/trunk/; revision=12378
* Bug #253210 - Fix logic inside EbuildBuild._buildpkg_exit() to avoidZac Medico2008-12-311-5/+10
| | | | | | | triggering an AssertionError when the package phase has failed. This bug usually isn't noticeable since the package phase usually succeeds. svn path=/main/trunk/; revision=12371
* Bug #252995 - When post_emerge() returns early because the vdb state hasZac Medico2008-12-301-0/+1
| | | | | | not changed, still display new notifications. svn path=/main/trunk/; revision=12369
* Inside git_sync_timestamps(), use git-diff-index for the same reason thatZac Medico2008-12-281-1/+1
| | | | | | repoman now uses it since bug #252727. svn path=/main/trunk/; revision=12360
* Revert r12348 since it's not really needed and the previous version is morev2.2_rc20Zac Medico2008-12-271-1/+1
| | | | | | efficient. svn path=/main/trunk/; revision=12352
* Fix loop logic some more for bug #252572.Zac Medico2008-12-261-6/+8
| | | | svn path=/main/trunk/; revision=12349
* Bug #252572 - Fix a loop condition inside depgraph._serialize_tasks() whichZac Medico2008-12-261-1/+1
| | | | | | can cause an infinite loop that's triggered by unresolvable blockers. svn path=/main/trunk/; revision=12348
* Fix typo.v2.2_rc19Zac Medico2008-12-251-1/+1
| | | | svn path=/main/trunk/; revision=12341
* Refactor EbuildMetadataPhase._output_handler() and _set_returncode().Zac Medico2008-12-251-16/+13
| | | | svn path=/main/trunk/; revision=12339
* Use long() instead of float() when parsing Package.mtime from the metadata.Zac Medico2008-12-251-1/+1
| | | | svn path=/main/trunk/; revision=12332
* Add support for synchronizing ebuild and eclass timestamps with the metadataZac Medico2008-12-251-1/+136
| | | | | | | | | | | cache timestamps which emerge --sync operates on a git repository. This is necessary since git doesn't preserve timestamps. It is assumed that the timestamps should be synchronized if the relevant ebuilds and eclasses are unmodified relative to the HEAD commit (as reported by git-ls-files). This feature was requested by Daniel Robbins, so that it's possible for the funtoo git repository to distribute pre-generated metadata. svn path=/main/trunk/; revision=12303
* Make BinpkgFetcher use longs instead of floats when synchronizing timestamps,Zac Medico2008-12-241-2/+2
| | | | | | since it's better not to rely on float comparison here. svn path=/main/trunk/; revision=12302
* Make more code conditional on POLLIN events, where appropriate.Zac Medico2008-12-231-31/+38
| | | | svn path=/main/trunk/; revision=12291
* Move initial signal handlers to the launcher script.Zac Medico2008-12-231-17/+2
| | | | svn path=/main/trunk/; revision=12290
* Rename the PollTask class to AbstractPollTask.Zac Medico2008-12-231-3/+6
| | | | svn path=/main/trunk/; revision=12289
* Add handling for POLLERR, POLLNVAL, and POLLHUP. Hopefully this solves hung ↵Zac Medico2008-12-231-40/+72
| | | | | | | | | poll calls with defunct ebuild.sh processes, reported on solaris systems by Fabian Groffen <grobian@g.o>. svn path=/main/trunk/; revision=12287
* Register for poll events before forking, in order to avoid potential race ↵Zac Medico2008-12-231-13/+12
| | | | | | | | | | conditions in SpawnProcess._start() and EbuildMetadataPhase._start(). Hopefully this solves hung poll calls with defunct ebuild.sh processes, reported on solaris systems by Fabian Groffen <grobian@g.o>. svn path=/main/trunk/; revision=12285
* Simplify the code from bug #218854. Also, ensure that the set of visible ↵Zac Medico2008-12-231-33/+7
| | | | | | | | | | packages thats used by depgraph._iter_atoms_for_pkg() is consistent with the packages that have been selected by depgraph._select_pkg_highest_available(). This should correct potential inconstencies introduced by the package selection changes from bug #252167. svn path=/main/trunk/; revision=12279
* Bug #252167 - If the ebuild no longer exists or it's keywords have been dropped,Zac Medico2008-12-231-8/+27
| | | | | | | reject built instances (installed or binary). If --usepkgonly is enabled, assume that the ebuild status should be ignored. svn path=/main/trunk/; revision=12278
* Fix --clean <atom> so that it considers all packages within a given slot whenZac Medico2008-12-211-1/+16
| | | | | | | | it's deciding which packages to keep, rather than just considering the ones matched by the given atom. Any packages not matching the given atom are protected from being unmerged. Thanks to Mart Raudsepp <leio@g.o> for reporting. svn path=/main/trunk/; revision=12272
* Update --depclean 'unsatisfied deps' message to recommend the same emerge updateZac Medico2008-12-211-2/+2
| | | | | | | command that's recommended earlier. Thanks to Jeremy Olexa <darkside@g.o> for reporting. svn path=/main/trunk/; revision=12271
* Remove the TaskScheduler.run() method since the constructor replaces it withZac Medico2008-12-211-3/+0
| | | | | | the QueueScheduler.run() method. svn path=/main/trunk/; revision=12270
* Fix DependencyArg.__str__() to ensure that str type is always returned.Zac Medico2008-12-191-1/+1
| | | | svn path=/main/trunk/; revision=12258
* Inside display_preserved_libs(), filter out consumers that belong to theZac Medico2008-12-171-4/+5
| | | | | | same package as the provider only if those consumers are also preserved. svn path=/main/trunk/; revision=12257
* Inside display_preserved_libs(), filter out any consumers that belong to theZac Medico2008-12-151-1/+7
| | | | | | same package as the provider. svn path=/main/trunk/; revision=12253
* Update comment about resume opts stored as dict starting with 2.1.6_rc1.Zac Medico2008-12-121-1/+1
| | | | svn path=/main/trunk/; revision=12246
* Add a new FEATURES=test-fail-continue value which causes ebuild executionZac Medico2008-12-121-0/+4
| | | | | | | to continue after the test phase has failed. Thanks to Diego Pettenò <flameeyes@g.o> for the suggestion. svn path=/main/trunk/; revision=12214