Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add a new AsynchronousLock class that uses the portage.locks module to | Zac Medico | 2010-09-13 | 1 | -0/+103 |
| | | | | acquire a lock asynchronously, using a background thread. | ||||
* | In depgraph._load_vdb(), after calling FakeVartree.sync(), update | Zac Medico | 2010-09-13 | 1 | -0/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | self._frozen_config.pkgsettings so that it has populated virtuals. This solves allows us to avoid triggering an AssertionError reported at http://forums.gentoo.org/viewtopic-t-844519.html with the following traceback: Calculating dependencies... done! Traceback (most recent call last): File "/usr/bin/emerge", line 43, in <module> retval = emerge_main() File "/usr/lib/portage/pym/_emerge/main.py", line 1683, in emerge_main myopts, myaction, myfiles, spinner) File "/usr/lib/portage/pym/_emerge/actions.py", line 204, in action_build settings, trees, mtimedb, myopts, myparams, spinner) File "/usr/lib/portage/pym/_emerge/depgraph.py", line 6047, in resume_depgraph myparams, spinner) File "/usr/lib/portage/pym/_emerge/depgraph.py", line 6070, in _resume_depgraph skip_masked=skip_masked) File "/usr/lib/portage/pym/_emerge/depgraph.py", line 5617, in _loadResumeCommand if not self._add_pkg(task, None): File "/usr/lib/portage/pym/_emerge/depgraph.py", line 893, in _add_pkg pkgsettings.setinst(pkg.cpv, pkg.metadata) File "/usr/lib/portage/pym/portage/package/ebuild/config.py", line 1757, in setinst self._virtuals_manager.add_depgraph_virtuals(mycpv, virts) File "/usr/lib/portage/pym/portage/package/ebuild/_config/VirtualsManager.py", line 199, in add_depgraph_virtuals self.getvirtuals() File "/usr/lib/portage/pym/portage/package/ebuild/_config/VirtualsManager.py", line 156, in getvirtuals self._compile_virtuals() File "/usr/lib/portage/pym/portage/package/ebuild/_config/VirtualsManager.py", line 131, in _compile_virtuals "any query about virtuals" AssertionError: _populate_treeVirtuals() must be called before any query about virtuals | ||||
* | Don't miss a "missing IUSE" because of [foo?] -> [] evaluations. | Sebastian Luther | 2010-09-13 | 1 | -15/+14 |
| | | | | This patch also drops flags with EAPI 4 use dep defaults from use.required. | ||||
* | Add a 'condition' keyword argument to PollScheduler._schedule_wait() | Zac Medico | 2010-09-13 | 1 | -1/+3 |
| | | | | | which is a callable that should return True when it is desirable for the _schedule_wait() method to return. | ||||
* | Since pkg_nofetch is no longer called from fetch(), add a new | Zac Medico | 2010-09-10 | 1 | -1/+8 |
| | | | | | spawn_nofetch() support for doebuild() and other fetch() callers to use. | ||||
* | Remove pkg_nofetch code from the fetch() function since it's currently ↵ | Zac Medico | 2010-09-10 | 1 | -9/+8 |
| | | | | broken (doebuild_environment raises TypeError due to missing mydbapi parameter) and this is a poor place to spawn pkg_nofetch anyway, especially given that the caller does not even pass in a portdbapi instance. For now, relocate the pkg_nofetch execution to EbuildBuild so that it works for emerge. TODO: Add pkg_nofetch support to fetch() callers where appropriate. | ||||
* | Remove redundant elog_process() call in EbuildBuild._fetch_exit(). | Zac Medico | 2010-09-10 | 1 | -1/+0 |
| | |||||
* | Ensure that depgraph._show_unsatisfied_dep() doesn't suggest changes | Zac Medico | 2010-09-10 | 1 | -0/+15 |
| | | | | to masked or forced USE flags. | ||||
* | In depgraph._show_unsatisfied_dep(), if the child package is masked then a | Zac Medico | 2010-09-10 | 1 | -0/+7 |
| | | | | | change to parent USE is not a valid solution (a normal mask message should be displayed instead). | ||||
* | global updates: Honor -q and don't repeat the legend | Sebastian Luther | 2010-09-10 | 2 | -2/+2 |
| | |||||
* | Eliminate redunant elog_process() call in EbuildBuild._fetch_exit() | Zac Medico | 2010-09-09 | 1 | -2/+1 |
| | | | | | which fetch has failed, since _unlock_builddir() will handle it later. | ||||
* | Bug #267103 - In action_build(), check for config file updates in | Zac Medico | 2010-09-09 | 1 | -0/+4 |
| | | | | /etc/portage and warn if necessary. | ||||
* | Bug #336644 - Make EbuildIpcDaemon use AbstractPollTask._read_buf(), | Zac Medico | 2010-09-09 | 1 | -17/+4 |
| | | | | | for better handling of errors like "IOError: [Errno 11] Resource temporarily unavailable". TODO: Apply a similar fix to ebuild-ipc.py. | ||||
* | Split out a AbstractPollTask._read_buf() helper method. | Zac Medico | 2010-09-09 | 2 | -17/+30 |
| | |||||
* | Use EROOT in chk_updated_cfg_files() calls. | Zac Medico | 2010-09-09 | 2 | -3/+4 |
| | |||||
* | Bug #336499 - If RESTRICT=fetch is not set but pkg_nofetch is defined, | Zac Medico | 2010-09-09 | 1 | -2/+26 |
| | | | | | go ahead and run pkg_nofetch upon fetch failure. This allows specialized messages to be displayed for problematic packages. | ||||
* | Make Package.metadata.defined_phases return all possible phases when | Zac Medico | 2010-09-09 | 1 | -1/+11 |
| | | | | | DEFINED_PHASES is undefined. This makes it easy to do containment checks to see if it's safe to skip execution of a given phase. | ||||
* | In EbuildBuild._pre_clean_exit() is _default_exit instead of | Zac Medico | 2010-09-09 | 1 | -1/+1 |
| | | | | _final_exit where appropriate. | ||||
* | Bug #336651 - Fix Scheduler._restart_if_necessary() to correctly | Zac Medico | 2010-09-09 | 1 | -1/+5 |
| | | | | | handle arguments like --exclude that are stored as a list since they use the 'append' action. | ||||
* | Combine prefetch conditionals in EbuildFetcher. | Zac Medico | 2010-09-09 | 1 | -2/+1 |
| | |||||
* | Make EbuildFetcher always disable color in prefetch mode, since | Zac Medico | 2010-09-09 | 1 | -0/+6 |
| | | | | prefetch output always goes to a log. | ||||
* | Update --autounmask docs to note that it generates package.use settings. | Zac Medico | 2010-09-09 | 1 | -1/+2 |
| | |||||
* | Make action_info() validate PORTAGE_TMPDIR since it uses it to solve | Zac Medico | 2010-09-08 | 1 | -0/+7 |
| | | | | bug #336503. | ||||
* | Bug #336503 - Use PORTAGE_TMPDIR for the emerge --sync server timestamp | Zac Medico | 2010-09-08 | 1 | -2/+7 |
| | | | | | tempfile, since with FEATURES=usersync, the default directory used by the tempfile module may not be readbable by the usersync user. | ||||
* | Make UnmergeDepPriority automatically set optional=True for | Zac Medico | 2010-09-08 | 1 | -0/+5 |
| | | | | buildtime dependencies. | ||||
* | Fix broken dep_check() call in calc_depclean() to use | Zac Medico | 2010-09-08 | 1 | -7/+6 |
| | | | | depgraph._select_atoms() instead. | ||||
* | Fix typo in comment. | Arfrever Frehtes Taifersar Arahesis | 2010-09-08 | 1 | -1/+1 |
| | |||||
* | Bug #332719 - For removal operations, use _dep_check_composite_db | Zac Medico | 2010-09-08 | 1 | -10/+39 |
| | | | | | for availability and visibilty checks. This provides consistency with install operations, so we don't get install/uninstall cycles. | ||||
* | Make previous commit reference self._depgraph._pkg_visibility_check(). | Zac Medico | 2010-09-08 | 1 | -1/+1 |
| | |||||
* | In depgraph._dep_check_composite_db._visible(), wrap installed package | Zac Medico | 2010-09-08 | 1 | -1/+1 |
| | | | | visiblity checks with self._pkg_visibility_check(). | ||||
* | Add another _ENABLE_DYN_LINK_MAP conditional in parse_opts(). | Zac Medico | 2010-09-07 | 1 | -2/+3 |
| | |||||
* | Disable the --depclean-lib-check option when _ENABLE_DYN_LINK_MAP | Zac Medico | 2010-09-07 | 2 | -15/+22 |
| | | | | is False. | ||||
* | Move the stale elog cleanup code from AbstractEbuildProcess to | Zac Medico | 2010-09-07 | 2 | -14/+16 |
| | | | | EbuildPhase. | ||||
* | Move the stale elog cleanup code from _doebuild_spawn() to | Zac Medico | 2010-09-07 | 1 | -1/+17 |
| | | | | | | | AbstractEbuildProcess._start() since that's a better place if we decide to use phase_completed_file skip the spawning of bash (dyn_unpack automatic clean/re-unpack logic could be migrated here too). | ||||
* | Remove unnecessary depgraph.altlist() call in Scheduler._calc_resume_list(). | Zac Medico | 2010-09-06 | 1 | -2/+0 |
| | |||||
* | Make Scheduler._set_graph_config() clear _deep_system_deps when | Zac Medico | 2010-09-06 | 1 | -0/+2 |
| | | | | appropriate. | ||||
* | Replace the settings and herdstree parameters for the MetaDataXML | Zac Medico | 2010-09-06 | 1 | -1/+3 |
| | | | | | constructor with a single herds parameter that can be either a path to a herds.xml, or a pre-parsed ElementTree. | ||||
* | Move the Scheduler mergelist constructor parameter to the graph_config | Zac Medico | 2010-09-06 | 3 | -26/+39 |
| | | | | object. | ||||
* | Fix depgraph._wrapped_select_pkg_highest_available_imp() to check | Zac Medico | 2010-09-06 | 1 | -1/+3 |
| | | | | | USE settings for installed packages when --newuse is enabled in cases when none of the packages match a given USE dep. | ||||
* | Fix typo in FakeVartree._pkg() docstring. | Zac Medico | 2010-09-06 | 1 | -1/+1 |
| | |||||
* | Make the depgraph and FakeVartree cooperate to consistently create | Zac Medico | 2010-09-06 | 2 | -6/+19 |
| | | | | | Package instances whose root_config attribute is a specially optimized RootConfig that has a FakeVartree instead of a real vartree. | ||||
* | Remove all \a (alert/bell/beep) tokens (bug 336024) | Sebastian Luther | 2010-09-06 | 1 | -2/+2 |
| | |||||
* | Use metadata.xml to print maintainer information in build.log | Sebastian Luther | 2010-09-06 | 1 | -0/+12 |
| | |||||
* | slot_collision_handler: Fix bug related to highlight_violations (bug 336085) | Sebastian Luther | 2010-09-06 | 1 | -10/+6 |
| | |||||
* | In depgraph.schedulerGraph(), make sure all references are broken | Zac Medico | 2010-09-06 | 1 | -0/+1 |
| | | | | to packages in the FakeVartrees. | ||||
* | Fix FakeVartree.sync() to remove stale packages from _pkg_cache. | Zac Medico | 2010-09-06 | 1 | -0/+3 |
| | |||||
* | Make depgraph.schedulerGraph() return an instance of | Zac Medico | 2010-09-06 | 2 | -26/+48 |
| | | | | | | | _scheduler_graph_config instead of just a digraph. This new object includes instances of FakeVartree and a package cache that is pruned to contain only installed packages or those in the digraph. | ||||
* | Fix FakeVartree._pkg() to cache package instances in self._pkg_cache, | Zac Medico | 2010-09-05 | 1 | -0/+1 |
| | | | | for use by depgraph. | ||||
* | Make Scheduler._destroy_installed_graph() destroy _digraph. | Zac Medico | 2010-09-05 | 1 | -3/+4 |
| | |||||
* | Remove unused p_type variable in show_invalid_depstring_notice(). | Zac Medico | 2010-09-05 | 1 | -1/+0 |
| |