summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove the Scheduler._post_merge() method, and create a newZac Medico2008-07-031-30/+29
| | | | | | _show_failed_fetches() method. svn path=/main/trunk/; revision=10906
* Split out a new _add_prefetchers() method from Scheduler._merge().Zac Medico2008-07-031-26/+34
| | | | svn path=/main/trunk/; revision=10905
* Split out a new _check_manifests() method from Scheduler._merge() sinceZac Medico2008-07-031-41/+55
| | | | | | | this method is not useful for parallel scheduling and any useful code needs to be relocated. svn path=/main/trunk/; revision=10903
* Implement asynchronous binary package extraction, so that the schedulerZac Medico2008-07-032-6/+130
| | | | | | can run while a package is extracting in the background. svn path=/main/trunk/; revision=10902
* Make BinpkgFetcherAsync inherit from SpawnProcess.Zac Medico2008-07-031-74/+11
| | | | svn path=/main/trunk/; revision=10901
* Add missing BinpkgFetcherAsync.registered attribute.Zac Medico2008-07-031-1/+1
| | | | svn path=/main/trunk/; revision=10900
* Move post ebuild phase code (originally from spawnebuild) fromZac Medico2008-07-031-6/+8
| | | | | | EbuildExecuter.execute() to EbuildPhase._set_returncode(). svn path=/main/trunk/; revision=10899
* Split out a SpawnProcess base class out of EbuildFetcherAsync.Zac Medico2008-07-031-38/+74
| | | | svn path=/main/trunk/; revision=10898
* Use stdout.write() instead of "print", for py3k compat.Zac Medico2008-07-031-14/+24
| | | | svn path=/main/trunk/; revision=10897
* Fix broken except statement. Thanks to hawking.Zac Medico2008-07-021-1/+1
| | | | svn path=/main/trunk/; revision=10896
* Fix EbuildBuildDir so that it works properly with binary packages.Zac Medico2008-07-021-14/+21
| | | | svn path=/main/trunk/; revision=10895
* Handle missing select.poll on interix by using select() to emulate a pollZac Medico2008-07-021-1/+61
| | | | | | object. svn path=/main/trunk/; revision=10894
* Remove $PORTAGE_BUILDDIR locking from portage.pkgmerge() and useZac Medico2008-07-022-29/+13
| | | | | | an instance of EbuildBuildDir instead. svn path=/main/trunk/; revision=10892
* Split out a SubProcess base class for EbuildFetcherAsync, EbuildPhase,Zac Medico2008-07-021-114/+53
| | | | | | and BinpkgFetcherAsync. svn path=/main/trunk/; revision=10891
* Py3k compatibility patch by Ali Polatel <hawking@g.o>.Zac Medico2008-07-028-37/+70
| | | | | | Don't use the format raise Exception, "string" svn path=/main/trunk/; revision=10890
* Fix EbuildBuild.execute() to return os.EX_OK on success.Zac Medico2008-07-021-0/+1
| | | | svn path=/main/trunk/; revision=10889
* Fix inverted buildpkgonly logic.Zac Medico2008-07-021-1/+1
| | | | svn path=/main/trunk/; revision=10888
* Split out a Binpkg class from code inside Scheduler._execute_task().Zac Medico2008-07-021-54/+104
| | | | svn path=/main/trunk/; revision=10887
* Remove debugging code from the previous commit.Zac Medico2008-07-021-4/+0
| | | | svn path=/main/trunk/; revision=10886
* * Rename existing EbuildBuild class to EbuildExecuter.Zac Medico2008-07-021-127/+210
| | | | | | | * Split more code out of Scheduler._execute_task() and use it to make a more comprehensive EbuildBuild class. svn path=/main/trunk/; revision=10885
* Py3k compatibility patch #6 by Ali Polatel <hawking@g.o>.Zac Medico2008-07-013-1/+18
| | | | | | Replace dict.has_key() calls with "in" and "not in" operators. svn path=/main/trunk/; revision=10875
* Py3k compatibility patch #5 by Ali Polatel <hawking@g.o>.Zac Medico2008-07-014-15/+15
| | | | | | Replace dict.has_key() calls with "in" and "not in" operators. svn path=/main/trunk/; revision=10874
* Py3k compatibility patch #4 by Ali Polatel <hawking@g.o>.Zac Medico2008-07-015-7/+7
| | | | | | Replace dict.has_key() calls with "in" and "not in" operators. svn path=/main/trunk/; revision=10873
* Py3k compatibility patch #3 by Ali Polatel <hawking@g.o>.Zac Medico2008-07-014-14/+15
| | | | | | Replace dict.has_key() calls with "in" and "not in" operators. svn path=/main/trunk/; revision=10872
* Py3k compatibility patch #2 by Ali Polatel <hawking@g.o>.Zac Medico2008-07-012-2/+2
| | | | | | Replace dict.has_key() calls with "in" and "not in" operators. svn path=/main/trunk/; revision=10871
* Py3k compatibility patch #1 by Ali Polatel <hawking@g.o>.Zac Medico2008-07-019-58/+60
| | | | | | Replace dict.has_key() calls with "in" and "not in" operators.. svn path=/main/trunk/; revision=10870
* Add a "prefix" keyword parameter to slot_dict_class() which controls theZac Medico2008-07-012-39/+43
| | | | | | | | prefix used when mapping attribute names from keys. Use this to change the syntax from files["foo"] to files.foo (it's fewer characters to look at). svn path=/main/trunk/; revision=10869
* Add a new BinpkgFetcherAsync class and use it to implement parellel-fetchZac Medico2008-07-011-15/+240
| | | | | | for --getbinpkg. svn path=/main/trunk/; revision=10868
* Never do realpath() on an empty string for portdbapi.porttree_root sinceZac Medico2008-07-011-1/+3
| | | | | | otherwise it can evaluate to $CWD which leads to undesireable results. svn path=/main/trunk/; revision=10867
* Also avoid sandbox violations in PreservedLibsRegistry.store(), for runningZac Medico2008-07-011-0/+2
| | | | | | portage inside ebuild phases. svn path=/main/trunk/; revision=10866
* Handle potential errors in PreservedLibsRegistry.store() now that it canZac Medico2008-07-011-3/+7
| | | | | | | be called via pruneNonExisting(), due to things such as portageq calls where the user may not have write permission to the registry. svn path=/main/trunk/; revision=10865
* Split out a write_contents() function and a vardbapi.removeFromContents()Zac Medico2008-07-011-30/+68
| | | | | | | | | | function. This is refactoring of code from the blocker file collision contents handling in dblink.treewalk(). Also, there is a new dblink._match_contents() method derived from isowner(). It returns the exact path from the contents file that matches the given path, regardless of path differences due to things such as symlinks. svn path=/main/trunk/; revision=10864
* add a call to pruneNonExisting() at the end of ↵Zac Medico2008-07-011-1/+2
| | | | | | dbapi.vartree.PreservedLibsRegistry.__init__() svn path=/main/trunk/; revision=10862
* Fix typo.Zac Medico2008-06-301-1/+1
| | | | svn path=/main/trunk/; revision=10861
* Bug #230249 - Disable the "ebuild.notadded" check when not in commit mode andZac Medico2008-06-301-2/+8
| | | | | | | running `svn list` and `svn status` calls in every package dir will be too expensive. svn path=/main/trunk/; revision=10860
* Bug #230245 - Use os.path.basename() on paths returned from `svn list`Zac Medico2008-06-301-2/+2
| | | | | | and `svn status`. svn path=/main/trunk/; revision=10859
* Bug #230245 - Pass the correct directory when calling `snv list` andZac Medico2008-06-301-2/+2
| | | | | | | `svn status` since repoman supports category-level and repo-level commits. svn path=/main/trunk/; revision=10858
* Add "(no inline comments)" to qualify "comments begin with #" statements.Zac Medico2008-06-301-14/+14
| | | | svn path=/main/trunk/; revision=10857
* Clear the self._task_queue to avoid duplicate parallel-fetch tasksZac Medico2008-06-301-0/+1
| | | | | | in --keep-going mode. svn path=/main/trunk/; revision=10856
* Reimplement parallel-fetch by spawning the `ebuild fetch` command for eachZac Medico2008-06-302-93/+234
| | | | | | | | ebuild. The benefit of using this approach is that it can be integrated together with parallel build scheduling that's planned. Parallel-fetch support for binhost is not implemented yet, though it worked previously. svn path=/main/trunk/; revision=10855
* Avoid python-2.6 deprecation warnings for md5 and sha modules by tryingZac Medico2008-06-301-3/+13
| | | | | | | to import hashlib first and then falling back to the deprecated modules if necessary. Thanks to ColdWind for reporting. svn path=/main/trunk/; revision=10854
* Rename the MergeTask class to Scheduler.Zac Medico2008-06-301-3/+3
| | | | svn path=/main/trunk/; revision=10853
* * Tweak conditionals in doebuild() to fix emerge --fetch breakage reportedZac Medico2008-06-301-4/+6
| | | | | | | | | by Arfrever. * Change a couple EMERGE_FROM conditionals to use the "returnpid" parameter instead. svn path=/main/trunk/; revision=10852
* Centralize select.poll() event handling in MergeTask._schedule(). This willZac Medico2008-06-291-39/+47
| | | | | | | allow the parent process to handle output of multiple child processes running in parllel. svn path=/main/trunk/; revision=10851
* Add EMERGE_FROM to the blacklisted vars in the config constructor.Zac Medico2008-06-291-1/+1
| | | | svn path=/main/trunk/; revision=10850
* * Add "fd_pipes" and "returnpid" parameters to doebuild() and passZac Medico2008-06-292-29/+211
| | | | | | | | | | | | | | these into spawn calls, enabling ebuild processes to execute asynchronously. * Add a EbuildPhase class that's derived from the pty logging code inside portage.spawn(). * Integrate post-phase code from spawnebuild() into EbuildBuild.execute() so that it still gets called even though doebuild() calls execute asynchronously. svn path=/main/trunk/; revision=10849
* In EbuildBuild.execute(), call doebuild() separately for each phase sinceZac Medico2008-06-292-10/+15
| | | | | | | it will be easier to add asynchronous support to doebuild() if it's called this way. svn path=/main/trunk/; revision=10848
* Split out a _check_build_log() function from spawnebuild().Zac Medico2008-06-291-67/+78
| | | | svn path=/main/trunk/; revision=10847
* Split out a _post_src_install_uid_fix() function from spawnebuild().Zac Medico2008-06-291-22/+28
| | | | svn path=/main/trunk/; revision=10846
* Split out a _spawn_misc_sh() function from spawnebuild().Zac Medico2008-06-291-25/+40
| | | | svn path=/main/trunk/; revision=10845