summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/MetadataRegen.py
Commit message (Collapse)AuthorAgeFilesLines
* MetadataRegen: simplify _iter_every_cpZac Medico2013-01-061-7/+3
|
* MetadataRegen: call cp_all for each categoryZac Medico2013-01-061-9/+11
| | | | | List categories individually, in order to start yielding quicker, and in order to reduce latency in case of a signal interrupt.
* MetadataRegen: portdbapi.cp_all() already sortedZac Medico2013-01-061-1/+1
|
* MetadataRegen: fix signal interrupt handlingZac Medico2013-01-061-3/+4
| | | | | We have to force it out of the scheduling loop before _termination_check can have an effect.
* MetadataRegen: inherit AsyncSchedulerZac Medico2012-10-061-49/+16
|
* PollScheduler: remove self._jobsZac Medico2012-10-051-2/+3
| | | | This is variable is only needed by the Scheduler class.
* egencache: skip auxdb write if not metadata-transZac Medico2012-09-151-2/+4
|
* PollScheduler: use local EventLoop (thread safe)Zac Medico2012-05-101-1/+1
| | | | | | | For API consumers, this makes the doebuild() function compatible with threads, avoiding a ValueError raised by the signal module, as reported at http://bugs.sabayon.org/show_bug.cgi?id=3305. Classes derived from PollScheduler still use the signal module when possible.
* Don't write or trust cache for unsupported EAPIs.Zac Medico2012-05-101-3/+3
| | | | | | Since we're supposed to be able to efficiently obtain the EAPI from _parse_eapi_ebuild_head, we don't need to write or trust cache entries for unsupported EAPIs.
* AsynchronousTask: don't wait for exit statusZac Medico2012-02-131-2/+2
| | | | | | Synchronous waiting for status is not supported, since it would be vulnerable to hitting the recursion limit when a large number of tasks need to be terminated simultaneously, like in bug #402335.
* MetadataRegen: use porttreesZac Medico2012-02-111-1/+4
|
* _emerge.MetadataRegen.MetadataRegen._iter_metadata_processes():Arfrever Frehtes Taifersar Arahesis2012-02-111-21/+23
| | | | Regenerate metadata for given cpv in each repository.
* PollScheduler: return None from _schedule_tasksZac Medico2012-02-111-8/+2
| | | | The _keep_scheduling() template method is used instead.
* PollScheduler: add generic _main_loop()Zac Medico2012-02-101-6/+4
|
* PollScheduler: remove _poll_loopZac Medico2012-02-081-3/+6
| | | | | We can use iteration() instead, and _poll_loop's exit behavior doesn't seem practical to emulate with glib.MainLoop.
* PollScheduler: don't inherit EventLoopZac Medico2012-02-081-2/+2
|
* MetadataRegen: remove unused importZac Medico2011-10-151-1/+0
|
* cache: rewrite to support arbitrary validation methodBrian Harring2011-10-141-7/+7
| | | | | | | | | | Specifically, the cache can use any portage supported checksum method, or use the standard mtime approach. In addition, support controlling whether or not paths are stored, and generally try to restore some of the centralization/encapsulation that was in place originally. (cherry picked from commit bc1aed614fb588f0ade5bcb5d1265a8db0f8d247) Change-Id: Ic38057e7dbb15063c64a93c99e66e113a7d4c70e
* PollScheduler: tweek termination logicZac Medico2011-03-101-7/+8
| | | | | | | | | * PollScheduler and all subclasses now use the _terminated_tasks variable to check whether or not _terminate_tasks() has been called, and behave appropriately in that case. * The _schedule_tasks() method now has documentation about the relationship with _terminate_tasks() and _terminated_tasks.
* Add PollScheduler.terminate() for interruption.Zac Medico2011-01-151-4/+22
| | | | | This allows PollScheduler instances to do basic cleanup and terminate gracefully when SIGINT or SIGTERM signals are received.
* Show status when listing pkgs for emerge --regen.Zac Medico2010-10-051-0/+2
|
* Fix AttributeError for MetadataRegen._sched_iface.Zac Medico2010-08-221-1/+1
|
* Bug #324191 - Add support for FEATURES=compress-build-logs. The causesZac Medico2010-08-211-5/+1
| | | | | | | all build logs to be compressed while they are being written. Log file names have an extension that is appropriate for the compression type. Currently, only gzip(1) compression is supported, so build logs will have a '.gz' extension when this feature is enabled.
* Remove all svn $Id keywords.Zac Medico2010-03-241-1/+0
|
* Bug #286522 - Check all portdbapi.findname return values in case itZac Medico2009-09-261-0/+2
| | | | | | returns None, and raise 'ebuild not found' exceptions when necessary. svn path=/main/trunk/; revision=14442
* Replace dict.keys() usage with __iter__(), since it behaves identically inZac Medico2009-09-221-2/+2
| | | | | | both python 2.x and 3.x. svn path=/main/trunk/; revision=14380
* Use next(iterator) instead of iterator.next() for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-211-1/+1
| | | | | | (2to3-3.1 -f next -nw ${FILES}) svn path=/main/trunk/; revision=14355
* Use dict.(keys|values|items)() instead of ↵Arfrever Frehtes Taifersar Arahesis2009-09-211-3/+3
| | | | | | | | dict.(iterkeys|itervalues|iteritems)() for compatibility with Python 3. (2to3-3.1 -f dict -nw ${FILES}) svn path=/main/trunk/; revision=14327
* Update syntax of 'except' statements for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-201-2/+2
| | | | | | (2to3-3.1 -f except -nw ${FILES}) svn path=/main/trunk/; revision=14289
* Update imports to import portage.os (with unicode wrappers), and useZac Medico2009-08-111-10/+2
| | | | | | _unicode_encode() and _unicode_decode() where appropriate. svn path=/main/trunk/; revision=13993
* Add/update copyright headers.Zac Medico2009-06-251-0/+4
| | | | svn path=/main/trunk/; revision=13690
* Bug #275047 - Split _emerge/__init__.py into smaller pieces (part 4).Zac Medico2009-06-221-0/+170
Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch. svn path=/main/trunk/; revision=13669