summaryrefslogtreecommitdiffstats
path: root/pym/_emerge
Commit message (Collapse)AuthorAgeFilesLines
* Always mask the higher version when backtracking due to a slot conflictSebastian Luther2010-09-191-4/+10
|
* With waitpid and WNOHANG, only check the first element of the tuplev2.2_rc85Zac Medico2010-09-192-3/+12
| | | | since the second element may vary (bug #337465, comment #12).
* Bug #337465 - Enable EbuildIpcDaemon on Darwin and FreeBSD since itZac Medico2010-09-191-8/+0
| | | | seems fixed since commit 81fc303212b8379219cf5d463c8717359b972dba.
* slot collision handler: Fix bug in atom pretty printer for =* atomsSebastian Luther2010-09-191-0/+8
|
* Fix depgraph._complete_graph() to preserve initial_arg_list when itZac Medico2010-09-191-4/+6
| | | | updates args with _set_args().
* Fix incorrect depgraph_sets reference in depgraph._load_favorites().v2.2_rc84Zac Medico2010-09-181-1/+1
|
* Invert SetArg conditional in depgraph._set_args(), for clarity.Zac Medico2010-09-181-3/+4
|
* Add multiple $ROOT support to depgraph._iter_atoms_for_pkg().Zac Medico2010-09-182-91/+85
|
* Add digraph --debug output in calc_depclean() for the case whenZac Medico2010-09-181-0/+6
| | | | it bails out due to unresolved dependencies.
* Fix breakage in population of dynamic_config._set_atoms since theZac Medico2010-09-181-2/+5
| | | | fix from bug #337540.
* Use blocking IO in ebuild-ipc.py and EbuildIpcDaemon._send_reply(),Zac Medico2010-09-181-6/+1
| | | | in hopes that it will be more portable (see bug #337465).
* Disable EbuildIpcDaemon for Darwin (similar issues to FreeBSD).Zac Medico2010-09-181-1/+2
|
* Fix --autounmask get_dep_chain() function to traverse nested sets.Zac Medico2010-09-181-7/+20
|
* Never traverse the same node twice when showing parents inZac Medico2010-09-181-1/+3
| | | | depgraph._show_unsatisfied_dep().
* When depgraph._show_unsatisfied_dep() displays parents, traverse nestedZac Medico2010-09-181-7/+15
| | | | sets.
* Make depgraph._pkg_visibility_check() when --autounmask is notZac Medico2010-09-171-0/+3
| | | | enabled.
* Make EbuildIpcDaemon._input_handler() use a blanket exceptionZac Medico2010-09-171-2/+5
| | | | | handler for pickle.loads() since that can raise practically any exception when given corrupt data.
* Update emerge --autounmask docs to indicate support for LICENSEZac Medico2010-09-171-2/+2
| | | | masks.
* --autounmask: Support license changesSebastian Luther2010-09-171-35/+92
|
* Bug #337540 - Record nested package set information in the digraph.Zac Medico2010-09-174-37/+85
| | | | | | A new depgraph._expand_set_args() method adds nested SetArg instances to the digraph, in order to record parent -> child relationships from nested sets.
* Move traversal of world_sets from calc_depclean() toZac Medico2010-09-162-26/+51
| | | | | | | | depgraph._complete_graph(). With this patch, nested set traversal is only used for removal operations like --depclean and --prune. A later patch will introduce similar traversal for all operations, in order to solve bug #337540.
* Fix misspelling of DependencyArg.__eq__() method.Zac Medico2010-09-161-1/+1
|
* Make Package __str__ and __unicode__ methods more like DependencyArg.Zac Medico2010-09-162-3/+13
|
* Make RepoDisplay __str__ and __unicode__ methods more likeZac Medico2010-09-162-5/+17
| | | | DependencyArg.
* Make EbuildPhase display "Package" and "Repository" instead of "CPV"Zac Medico2010-09-161-2/+2
| | | | and "REPO" the the start of the build log.
* Add missing noiselevel parameter to writemsg_stdout() call from previousZac Medico2010-09-161-1/+1
| | | | commit.
* Make UseFlagDisplay __str__ and __unicode__ methods more likeZac Medico2010-09-162-3/+19
| | | | DependencyArg, and add tests.
* Implement DependencyArg __equals__, __hash__, and __unicode__ methods.Zac Medico2010-09-151-2/+24
|
* Bug #337465 - Disable EbuildIpcDaemon on FreeBSD since it doesn'tv2.2_rc83Zac Medico2010-09-151-0/+8
| | | | work yet.
* In Package._validate_deps(), force unicode format string inZac Medico2010-09-141-1/+4
| | | | check_required_use() exception handling (for python-2.x safety).
* Make Package._metadata_exception() use unicode format strings in orderZac Medico2010-09-141-3/+14
| | | | | | | | | | | | | | | | | | to avoid UnicodeDecodeError in python-2.x. This issue was reported in forum thread http://forums.gentoo.org/viewtopic-t-844623.html where the following traceback was posted: File "/usr/lib/portage/pym/_emerge/FakeVartree.py", line 195, in _pkg type_name="installed") File "/usr/lib/portage/pym/_emerge/Package.py", line 64, in __init__ self._validate_deps() File "/usr/lib/portage/pym/_emerge/Package.py", line 93, in _validate_deps self._metadata_exception(k, e) File "/usr/lib/portage/pym/_emerge/Package.py", line 242, in _metadata_exception "%s: %s in '%s'" % (k, e, path)) UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 22: ordinal not in range(128)
* Only initialize Package.inherited to an empty set when it is None.Zac Medico2010-09-141-1/+2
|
* Ensure that Package.inherited is always initialized, even if there is noZac Medico2010-09-141-0/+1
| | | | INHERITED metadata available (like for binary packages).
* Make EbuildBuildDir.unlock() use an asynchronous lock when locking theZac Medico2010-09-141-13/+9
| | | | category directory for removal.
* Make EbuildBuildDir use the PORTAGE_BUILDDIR variable instead of theZac Medico2010-09-144-6/+6
| | | | dir_path attribute.
* Make Binpkg call doebuild_environment() before constructingZac Medico2010-09-141-5/+7
| | | | EbuildBuildDir, so PORTAGE_BUILDDIR is initialized first.
* Make AbstractEbuildProcess lock PORTAGE_BUILDIR if it's not alreadyZac Medico2010-09-132-1/+12
| | | | locked.
* Make EbuildBuild call doebuild_environment() so that EbuildBuildDirZac Medico2010-09-133-18/+6
| | | | doesn't need to.
* Bug #336142 - Add support for using a thread to wait for locks insideZac Medico2010-09-133-9/+15
| | | | | EbuildBuildDir.lock() so that the scheduler can concurrently service ipc calls in the main thread.
* Add a new AsynchronousLock class that uses the portage.locks module toZac Medico2010-09-131-0/+103
| | | | acquire a lock asynchronously, using a background thread.
* In depgraph._load_vdb(), after calling FakeVartree.sync(), updateZac Medico2010-09-131-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 Luther2010-09-131-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 Medico2010-09-131-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 newZac Medico2010-09-101-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 Medico2010-09-101-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 Medico2010-09-101-1/+0
|
* Ensure that depgraph._show_unsatisfied_dep() doesn't suggest changesZac Medico2010-09-101-0/+15
| | | | to masked or forced USE flags.
* In depgraph._show_unsatisfied_dep(), if the child package is masked then aZac Medico2010-09-101-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 legendSebastian Luther2010-09-102-2/+2
|
* Eliminate redunant elog_process() call in EbuildBuild._fetch_exit()Zac Medico2010-09-091-2/+1
| | | | | which fetch has failed, since _unlock_builddir() will handle it later.