summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* PollScheduler: move _main_loop to SchedulerZac Medico2012-10-062-30/+30
|
* MetadataRegen: inherit AsyncSchedulerZac Medico2012-10-062-51/+20
|
* ManifestScheduler: tweak _task_exit output orderZac Medico2012-10-061-1/+3
| | | | This ensures that errors are logged before new jobs are scheduled.
* Substitute EventLoop for PollScheduler.Zac Medico2012-10-057-25/+20
| | | | | EventLoop suffices for all of these cases. EventLoop(main=False) is used for thread safety where API consumers may be using threads.
* PollScheduler: remove register/unregister methodsZac Medico2012-10-0510-24/+21
| | | | | | | These methods were aliases for the EventLoop io_add_watch and source_remove methods. Migrating to the EventLoop method names allows an EventLoop instance to substitute for a PollScheduler inside subclasses of AbstractPollTask.
* PollScheduler: remove self._jobsZac Medico2012-10-053-4/+8
| | | | This is variable is only needed by the Scheduler class.
* AsyncScheduler: remove useless __slots__Zac Medico2012-10-052-6/+0
| | | | | | It's not allowed for AsyncScheduler to inherit from two classes that define __slots__, so it useless to define __slots__ for AsyncScheduler and subclasses.
* TaskScheduler: inherit AsyncSchedulerZac Medico2012-10-056-162/+68
| | | | This allows the QueueScheduler class to be eliminated.
* test_ipc_daemon: implement internal SleepProcessZac Medico2012-10-041-3/+12
| | | | | Emulate the sleep command, in order to ensure a consistent return code when it is killed by SIGTERM (see bug #437180).
* ManifestScheduler: handle InvalidDependStringZac Medico2012-10-031-3/+12
|
* ManifestTask: add missing signaturesZac Medico2012-10-031-2/+20
| | | | | If the existing Manifest already has the correct content, but it is not signed, then sign it if appropriate.
* AsyncScheduler: poll in _schedule_tasksZac Medico2012-10-031-0/+3
| | | | Triggers cleanup and exit listeners if there's nothing left to do.
* AsyncScheduler: implement _pollZac Medico2012-10-031-0/+5
|
* AsyncScheduler: use _termination_checkZac Medico2012-10-031-1/+1
| | | | | The _terminate_tasks method is always supposed to be called via _termination_check.
* AsyncScheduler: source_remove in _waitZac Medico2012-10-031-0/+8
|
* EbuildFetcher/MergeProcess: inherit ForkProcessZac Medico2012-10-033-45/+16
| | | | | Also add missing __slots__ to ForkProcess. TODO: Share code between ForkProcess and MergeProcess.
* egencache: add --update-manifests, bug #436918Zac Medico2012-10-039-4/+349
| | | | | | | | | | Update manifest files, and sign them if signing is enabled. This supports parallelization if enabled via the --jobs option. The --thin-manifests and --sign-manifests options may be used to manually override layout.conf settings. There's also a new --strict-manifests option that may be used to manually override the "strict" FEATURES setting, a --gpg-key option to override PORTAGE_GPG_KEY, and a --gpg-dir option to override PORTAGE_GPG_DIR.
* Fix emerge <tbz2> for python3.Zac Medico2012-10-021-2/+12
|
* OrderedDict: fix setitem bug #436974Zac Medico2012-10-021-3/+3
| | | | | | This fixes some strange behavior triggered during fetch, which is only observable with Python 2.6 since it doesn't have collections.OrderedDict.
* Add chown and chgrp wrappers for prefix.Zac Medico2012-09-301-0/+4
| | | | | | | For prefix, there is typically only a single unprivileged user who owns everthing that is built and installed, and in this case it's desirable to ignore chown and chrgrp failures. So, move the logic from fowners into chown and chgrp wrappers, as discussed in bug #433453.
* Handle KeyError when loading pickles.Zac Medico2012-09-283-3/+9
| | | | See http://forums.gentoo.org/viewtopic-t-938022.html for example.
* _slot_operator: EAPI 5-hdepend DEPEND target onlyZac Medico2012-09-271-5/+9
|
* UseManager: /etc/portage/profile extended syntaxZac Medico2012-09-263-13/+30
| | | | | If /etc/portage/profile/eapi does not exist, then support extended atom syntax. This will fix bug #436330.
* test_ipc_daemon: increase sleep for bug #436334Zac Medico2012-09-261-1/+3
|
* Use constants for more hardcoded *DEPEND lists.v2.2.0_alpha133Zac Medico2012-09-252-8/+7
|
* update_ents: use Package._dep_keysZac Medico2012-09-251-2/+2
|
* evaluate_slot_operator_equal_deps: do HDEPENDZac Medico2012-09-251-0/+1
|
* Use constants for more hardcoded *DEPEND lists.Zac Medico2012-09-252-5/+6
|
* Use constants for hardcoded *DEPEND lists.Zac Medico2012-09-257-23/+17
|
* Test emerge --root-deps more.Zac Medico2012-09-251-0/+5
|
* Test emerge --root-deps.Zac Medico2012-09-251-1/+31
|
* EventLoop: fix busy loop waiting for child pidZac Medico2012-09-252-14/+18
| | | | | | This fixes a case where EventLoop could consume 100% CPU while waiting for a child process. It also fixes timeout calculations in python 2.x, where it was using integer division instead of float.
* _add_pkg_deps: use _get_eapi_attrsZac Medico2012-09-252-4/+7
|
* ResolverPlayground: check targetroot in mergelistZac Medico2012-09-252-1/+4
|
* ResolverPlayground: support targetrootZac Medico2012-09-255-105/+112
| | | | | | | In order to support targetroot, ResolverPlayground always writes make.conf, since create_trees does not propagate all of the necessary settings via the env parameter (because the env settings often need to be isolated from eachother, especially for cross-compilation).
* repoman: rename most *DEPEND.* to dependency.*Zac Medico2012-09-251-2/+7
| | | | This makes it easier to add new types, like HDEPEND.
* Remove obsolete cache/flat_list.pyZac Medico2012-09-241-135/+0
| | | | | | This module has been obsolete and useless for many years, which is especially obvious since it was missing INHERITED from its auxdbkey_order and it did not write any eclass metadata.
* ResolverPlayground: simplify vdb/portdb creationZac Medico2012-09-241-80/+32
| | | | This enables automatic handling of HDEPEND.
* circular_dependency: handle HDEPENDZac Medico2012-09-241-1/+2
|
* cache/sqlite.py: translate None to empty stringZac Medico2012-09-241-2/+7
|
* cache/metadata.py: add HDEPENDZac Medico2012-09-242-2/+4
|
* Add experimental EAPI 5-hdepend support.Ambroz Bizjak2012-09-2416-45/+79
|
* _global_updates: scan binarytree only if neededZac Medico2012-09-241-6/+8
| | | | This will fix bug #436084.
* _create_use_string: pass in feature_flags argv2.2.0_alpha132Zac Medico2012-09-232-7/+8
| | | | This allows them to be looked up outside of the USE_EXPAND loop.
* env_update: use eroot variable moreZac Medico2012-09-231-10/+7
|
* env_update: scan all dirs starting with "lib"Zac Medico2012-09-231-4/+19
| | | | | Also see bug #435834 and commit 7fb9758506341ffc05585fbd18f2be58ef0e16c2.
* Add _get_feature_flags(eapi_attrs) function.Zac Medico2012-09-235-10/+30
| | | | | | This will be useful for adding flags that behave specially in experimental EAPIs, such as the targetroot/sysroot flag which is planned for EAPI 5-hdepend.
* RepoConfig: add find_invalid_path_char methodZac Medico2012-09-232-13/+33
| | | | | | This binds filename validation to the RepoConfig, so that eventually we'll be able to control it via a layout.conf setting as discussed in bug #435934.
* Use re.UNICODE for category/package name regexes.Zac Medico2012-09-225-11/+25
| | | | | | | | This only affects r'\w' with Python 2.x, since Python 3 already defaults to re.UNICODE behavior when compiling unicode str objects (unless re.ASCII is specified). If a repository wants to ban unicode categore/package names then we can add a layout.conf setting for that, as discussed in bug #435934.
* doebuild.py: remove unused f = NoneZac Medico2012-09-211-1/+0
|