summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Toggle private constants for stable branch:Zac Medico2010-09-151-5/+5
| | | | | | | | _ENABLE_DYN_LINK_MAP = False _ENABLE_PRESERVE_LIBS = False _ENABLE_REPO_NAME_WARN = False _ENABLE_SET_CONFIG = False _SANDBOX_COMPAT_LEVEL = "21"
* Bug #337465 - Disable EbuildIpcDaemon on FreeBSD since it doesn'tv2.2_rc83Zac Medico2010-09-151-0/+8
| | | | work yet.
* Tweak stack_lists() strict_warn_for_unmatched_removal logic.Zac Medico2010-09-151-2/+3
|
* Bug #337180 - Add a --unmatched-removal option for stricter checkingZac Medico2010-09-152-7/+19
| | | | of package.mask and package.unmask files for unmatched removal atoms.
* Bug #337180 - Add a strict_warn_for_unmatched_removal parameter forZac Medico2010-09-141-2/+8
| | | | stack_lists() that will be useful for repoman, and disable it by default.
* Limit the spam caused by unmatched removal atomsSebastian Luther2010-09-141-9/+12
|
* 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)
* Bug #336692 - When stack_lists() detects unmatched removal atoms,Zac Medico2010-09-141-1/+8
| | | | | account for cases in which the same profile is inherited multiple times in the same stack.
* Tests: test isvalidatom ::repo syntax supportSebastian Luther2010-09-141-87/+129
|
* ResolverPlayground: Add multi repo supportSebastian Luther2010-09-142-93/+194
|
* Add :.repo syntax support for portage.util.{grabfile_package,grabdict_package}Sebastian Luther2010-09-141-4/+4
|
* portage.dep: Add support for ::repo syntax to all functions and classesSebastian Luther2010-09-143-89/+178
| | | | This also adds the dep_getrepo() function
* In doebuild(), skip PORTAGE_BUILDDIR locking if it's already lockedZac Medico2010-09-141-3/+6
| | | | or returnpid is True.
* Make IpcDaemonTestCase use a finally block to unlock PORTAGE_BUILDDIR.v2.2_rc82Zac Medico2010-09-141-1/+3
|
* 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-147-9/+7
| | | | dir_path attribute.
* Make Binpkg call doebuild_environment() before constructingZac Medico2010-09-141-5/+7
| | | | EbuildBuildDir, so PORTAGE_BUILDDIR is initialized first.
* Fix some typos.Arfrever Frehtes Taifersar Arahesis2010-09-143-8/+8
|
* Don't export PORTAGE_BUILDIR_LOCKED to the ebuild environment.Zac Medico2010-09-141-1/+1
|
* Add a config.pkeywordsdict property for backward compatibility.Zac Medico2010-09-141-0/+7
|
* In KeywordsManager.pkeywordsdict save values as tuples instead of lists.Zac Medico2010-09-141-0/+2
|
* config: Add KeywordsManagerSebastian Luther2010-09-143-145/+196
|
* Make IpcDaemonTestCase use EbuildBuildDir for lock creation.Zac Medico2010-09-141-4/+14
|
* Make AbstractEbuildProcess lock PORTAGE_BUILDIR if it's not alreadyZac Medico2010-09-133-2/+13
| | | | locked.
* Bug #336142 - Use EbuildBuildDir for threaded locking of PORTAGE_BUILDDIRZac Medico2010-09-131-31/+8
| | | | | inside dblink.unmerge(), so that the scheduler can concurrently service ipc calls in the main thread.
* Use EbuildBuildDir for PORTAGE_BUILDDIR locking inside doebuild().Zac Medico2010-09-131-2/+7
|
* 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.
* Make dblink.lockdb() use AsynchronousLock.Zac Medico2010-09-131-29/+7
|
* Add a new AsynchronousLock class that uses the portage.locks module toZac Medico2010-09-134-0/+134
| | | | acquire a lock asynchronously, using a background thread.
* Make config.setinst() and get_virts_p() call getvirtuals() in orderZac Medico2010-09-131-0/+6
| | | | | to ensure that we don't trigger the _treeVirtuals assertion in VirtualsManager._compile_virtuals().
* 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
* Tests: Add use_reduce test case for bug 120374Sebastian Luther2010-09-131-0/+1
|
* Tests: Add resolver/test_missing_iuse_and_evaluated_atoms to make sure we ↵Sebastian Luther2010-09-131-0/+31
| | | | don't miss a "missing IUSE"
* Don't miss a "missing IUSE" because of [foo?] -> [] evaluations.Sebastian Luther2010-09-132-33/+18
| | | | This patch also drops flags with EAPI 4 use dep defaults from use.required.
* Bug #336142 - When looking of packages that own files for file collisionsZac Medico2010-09-131-9/+24
| | | | | inside dblink.treewalk(), periodically yield to the scheduler so that it can service ipc calls.
* Make sure atoms in profiles follow the profiles EAPISebastian Luther2010-09-136-25/+56
|
* Bug #336142 - Add support for using a thread to wait for locks insideZac Medico2010-09-132-4/+34
| | | | | dblink.lockdb() so that the scheduler can concurrently service ipc calls in the main thread.
* 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.
* Bug #336875 - Don't reference errno.ETIME since it's undefined on FreeBSD.Zac Medico2010-09-121-1/+3
|
* When fetching distfiles inside digestgen(), ignore conditional partsv2.2_rc80Zac Medico2010-09-111-3/+10
| | | | | | of RESTRICT since they don't apply unconditionally. Assume such conditionals only apply on the client side where digestgen() does not need to be called.
* For digestgen(), add a matchnone parameter to use_reduce() that is theZac Medico2010-09-111-1/+9
| | | | opposite of matchall.
* Fix digestgen() to respect RESTRICT=fetch.Zac Medico2010-09-111-1/+5
|
* Make spawn_nofetch() call elog_process().Zac Medico2010-09-111-0/+2
|
* Make the mail_summary elog module copy needed variables from the configZac Medico2010-09-112-5/+21
| | | | | | | instance, since we don't need to hold a reference for the whole thing. This also makes it possible to rely on per-package variable settings that may have come from /etc/portage/package.env, since we'll be isolated from any future mutations of mysettings.
* Fix typo in comment.Zac Medico2010-09-101-1/+1
|
* Make digestgen() use spawn_nofetch() when necessary, since fetch()Zac Medico2010-09-101-13/+6
| | | | no longer does it.