summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* PollScheduler: fix _schedule() to return Truev2.2.0_alpha137Zac Medico2012-10-101-2/+4
| | | | | | This fixes a regression like bug #403895, introduced in commit b696337bf20fdc539ce7721df7a4b42b35999705, since functions have to return True in order to be continuously scheduled.
* Atom: support *_beta* wildcard, bug #437872Zac Medico2012-10-104-5/+15
|
* _parse_uri_map: preserve order of URIsZac Medico2012-10-081-3/+8
| | | | Returns a dict of tuples instead of a dict of sets.
* fetch: preserve SRC_URI order for primaryuriv2.2.0_alpha136Zac Medico2012-10-081-1/+4
|
* PollScheduler: disable default _loadavg_latencyZac Medico2012-10-083-3/+10
| | | | | | Move the 30 second default to the Scheduler class, since that's the only place that it's currently needed (all other schedulers have relatively short-running jobs).
* emerge: handle --load-average with no argZac Medico2012-10-082-1/+16
| | | | | With no argument, removes a previous load limit (same behavior as make).
* dyn_spec: s/Copyright/License/, bug #437588Tim Boudreau2012-10-081-1/+1
| | | | Fixes 'Unknown tag' error with rpm 4.10.0.
* Revert "test_ipc_daemon: handle fork/finally race"Zac Medico2012-10-081-9/+0
| | | | | This reverts commit 56fbe3fe63adf4e7c5b47400182cd857d145d5b0. The race is now handled internally by spawn and ForkProcess.
* ForkProcess: set _exit finally block before forkZac Medico2012-10-082-102/+126
| | | | This is the most reliable way to handle the race condition.
* spawn: setup _exit finally block before forkZac Medico2012-10-081-17/+26
| | | | This is the most reliable way to handle the race condition.
* test_ipc_daemon: handle fork/finally raceZac Medico2012-10-081-0/+9
|
* spawn: use finally block for failure os._exit()Zac Medico2012-10-081-2/+5
| | | | Also, use writemsg for unicode safety.
* repoman: check EXTRA_ECONF/EMAKE, bug #437348Zac Medico2012-10-083-3/+16
|
* repoman: simplify EbuildAssignment checkZac Medico2012-10-081-9/+1
| | | | | | | The line continuation code is no longer needed since commit a1578c654f26cab07309bc9cbddd3c95c0c205b5, because wrapped lines are automatically joined before they are passed to the check. Also, inherit ignore_comment = True from LineCheck.
* ForkProcess: increase scope of try/finally/_exitZac Medico2012-10-081-9/+11
| | | | | This minimizes the probability of triggering irrelevant finally blocks from earlier in the call stack (bug #345289).
* PollScheduler: rename sched_iface to _sched_ifaceZac Medico2012-10-074-20/+18
| | | | | | It isn't used externally anymore, since SchedulerInterface is used directly in those places now. Many of the self.sched_iface references updated here, it's more appropriate to use self._event_loop.
* Show slot + repo for colliding packages.Zac Medico2012-10-071-3/+15
| | | | See bug #437516 for example.
* repoman: identical Manifest commit messageZac Medico2012-10-071-8/+1
| | | | This will fix bug #437546.
* Substitute SchedulerInterface for PollScheduler.Zac Medico2012-10-075-18/+24
| | | | | | SchedulerInterface suffices for all of these cases. EventLoop(main=False) is used for thread safety where API consumers may be using threads.
* PollScheduler: split out SchedulerInterfaceZac Medico2012-10-073-78/+100
|
* action_uninstall: use PollScheduler not SchedulerZac Medico2012-10-072-19/+16
| | | | | The PollScheduler class suffices here, if we just add a small amount of logic to calculate the _background attribute from the emerge opts.
* best_version() and has_version(): Improve die() messages.Arfrever Frehtes Taifersar Arahesis2012-10-073-6/+20
| | | | | | - Print different die() message for invalid atoms. - Mention ebuild-ipc instead of portageq in other die() messages when ebuild-ipc is actually used.
* Run tests with Python 3.4.Arfrever Frehtes Taifersar Arahesis2012-10-071-1/+1
|
* PollScheduler: move _main_loop to SchedulerZac Medico2012-10-062-30/+30
|
* MetadataRegen: inherit AsyncSchedulerZac Medico2012-10-063-53/+23
|
* 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).
* ebuild.sh: comment on noauto behaviorZac Medico2012-10-041-2/+4
|
* repoman: avoid Manifest double signaturev2.2.0_alpha135Zac Medico2012-10-031-1/+11
|
* 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-0311-7/+527
| | | | | | | | | | 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.
* debug-print: chgrp ${PORTAGE_GRPNAME:-portage}Zac Medico2012-09-301-2/+2
| | | | | | This fixes warnings for prefix users (see commits 1c3c3b802014ac6356af09d149aaaffce6c14dc3 and 6983b1a1dd21f931ba751b727bd1a3c460383840).
* phase-functions.sh: chgrp $T/environmentZac Medico2012-09-301-0/+2
| | | | | | | | | | | | This partially reverts commit 314791e319e3ac7ce75f3a6f9ae9cc5c2b837df6, in order to cover possible cases where it may not actually be redundant, like if ebuild(1) is used to call pkg_setup as root, and then a different user calls src_unpack. We use PORTAGE_GRPNAME if set, in order to avoid triggering irrelevant warnings for unprivileged prefix users (see chown and chgrp wrappers in commit 45bedf9cdc10fafd94858f67d62b36d35dd99544). This mirrors the approach taken in commit 1c3c3b802014ac6356af09d149aaaffce6c14dc3 of the prefix branch.
* phase-functions.sh: remove redundant chown/chmodZac Medico2012-09-301-2/+0
| | | | | | These calls trigger warnings in prefix mode, since commit 45bedf9cdc10fafd94858f67d62b36d35dd99544. They are redundant, since the permissions are handled the _post_phase_userpriv_perms function.
* Add chown and chgrp wrappers for prefix.Zac Medico2012-09-304-5/+38
| | | | | | | 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.
* Fix indent from last commit.v2.2.0_alpha134Zac Medico2012-09-271-5/+5
|