summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/Binpkg.py
Commit message (Collapse)AuthorAgeFilesLines
* Exit after killed while waiting on prefetch.Zac Medico2012-03-081-1/+5
|
* EbuildMerge: add exit_hook to unlock build dirZac Medico2012-02-101-2/+2
| | | | | | | | This is needed since commit 7a6c34cc6bd6eb20a97e05347f87a0157f4ae58a in order to ensure that the build dir is unlocked before exit listeners are called. It fixes failures in catalyst stage 1 builds where two instances of the same package, built sequentially for separate roots, interfere with eachother's build dir lock.
* Binpkg: move imports to topZac Medico2011-12-101-2/+2
|
* Use portage.shutil for safer unicode handling.Zac Medico2011-12-101-1/+1
|
* Binpkg: ensure $ED exists after extractionZac Medico2011-12-091-0/+1
|
* Binpkg: handle missing dir after chpathtoolZac Medico2011-12-091-5/+11
|
* Binpkg: fix os.path.dirname() usageZac Medico2011-12-091-1/+1
| | | | It doesn't behave as intended for $ED which has a trailing slash.
* Binpkg: add chpathtool support for prefixZac Medico2011-12-091-5/+59
| | | | | | This uses a python-based chpathtool implementation which is intended to be compatible with the C-based implemenation that the prefix branch uses.
* Binpkg: use fetch queue to cap fetch threadsZac Medico2011-07-161-1/+6
| | | | | This is analogous to commit f07f8386e945b48358c11c121960e4833c539752 for bug #375331, but for fetching from binhosts.
* Migrate from codecs.open() to io.open().Zac Medico2011-07-101-6/+9
| | | | | | | | | | | | | | | | | The io.open() function is the same as the built-in open() function in python3, and its implementation is optimized in python-2.7 and later. In addition to the possible performance improvement, this also allows us to avoid any future compatibility issues with codecs.open() that may arise if it is delegated to the built-in open() function as discussed in PEP 400. The main caveat involved with io.open() is that TextIOWrapper.write() raises TypeError if given raw bytes, unlike the streams returned from codecs.open(). This is mainly an issue for python2 since literal strings are raw bytes. We handle this by wrapping TextIOWrapper.write() arguments with our _unicode_decode() function. Also, the atomic_ofstream class overrides the write() method in python2 so that it performs automatic coercion to unicode when necessary.
* Binpkg: cleanup PORTAGE_BINPKG_FILE codeZac Medico2011-06-031-16/+6
|
* EbuildMerge: inherit from CompositeTaskZac Medico2011-05-151-2/+1
|
* Reoranize PackageMerge/MergeListItem interaction.Zac Medico2011-03-261-7/+4
|
* MergeProcess: call elog_process for replaced pkgsZac Medico2011-03-251-2/+0
|
* Preserve elog message continuity during updates.Zac Medico2011-03-241-0/+2
| | | | | | This integrates the fix from commit 8209aeab647b1ab80a64d5931069b3533776ef75 with the asynchronous merge changes from commit 7535cabdf2fab76fc55df83643157613dfd66be9.
* Merge packages asynchronously in Portage.David James2011-03-241-10/+11
| | | | | | | | This allows for the scheduler to continue to run while packages are being merged and installed, allowing for additional parallelism and making better use of the CPUs. Review URL: http://codereview.chromium.org/6713043
* Scheduler: tweak prefetcher cancellation logicZac Medico2011-03-161-3/+2
| | | | | This should prevent "TypeError: an integer is required" raised from waitpid when trying to cancel a prefetcher that never started.
* CompositeTask: handle unstarted terminated tasksZac Medico2011-03-161-2/+2
|
* Binpkg: implement REPLACING_VERSIONSZac Medico2010-12-301-0/+8
|
* Sync EMERGE_FROM code with MERGE_TYPE code.Zac Medico2010-12-051-1/+1
|
* EAPI 4: Support MERGE_TYPE (bug #347351)Zac Medico2010-12-031-0/+1
|
* Add support for FEATURES=binpkg-logs which is similar to unmerge-logs,Zac Medico2010-09-221-0/+8
| | | | but applies to all binary package merges.
* Fix a typo in a comment.Zac Medico2010-09-211-1/+1
|
* Bug #338267 - Fix broken PORTAGE_BUILDDIR assertion in Binpkg whenZac Medico2010-09-211-1/+3
| | | | PORTAGE_TMPDIR is a symlink.
* Make EbuildBuildDir use the PORTAGE_BUILDDIR variable instead of theZac Medico2010-09-141-2/+2
| | | | dir_path attribute.
* Make Binpkg call doebuild_environment() before constructingZac Medico2010-09-141-5/+7
| | | | EbuildBuildDir, so PORTAGE_BUILDDIR is initialized first.
* Make EbuildBuild call doebuild_environment() so that EbuildBuildDirZac Medico2010-09-131-1/+1
| | | | doesn't need to.
* Bug #336142 - Add support for using a thread to wait for locks insideZac Medico2010-09-131-1/+1
| | | | | EbuildBuildDir.lock() so that the scheduler can concurrently service ipc calls in the main thread.
* Bug #335340 - Add support for PORTAGE_BZIP2_COMMAND andZac Medico2010-08-301-0/+1
| | | | | | PORTAGE_BUNZIP2_COMMAND settings in make.conf. This only adds support for binary packages, since that's where pbzip2 can provide the most benefit in common cases.
* Fix some typos.Arfrever Frehtes Taifersar Arahesis2010-08-291-1/+1
|
* Make Binpkg call prepare_build_dirs() before trying to clean the oldZac Medico2010-08-221-2/+2
| | | | log, so PORTAGE_LOG_FILE is initialized.
* Add missing scheduler attribute to BinpkgVerifier (broken since theZac Medico2010-08-221-1/+1
| | | | the addition of FEATURES=compress-build-logs support).
* Bug #324191 - Add support for FEATURES=compress-build-logs. The causesZac Medico2010-08-211-17/+3
| | | | | | | 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.
* Move the code from _prepare_env_file() to a new BinpkgEnvExtractorZac Medico2010-08-181-8/+10
| | | | class.
* Use _prepare_env_file() to extract the binary package environment.bz2Zac Medico2010-08-181-1/+10
| | | | | | prior to the pkg_setup phase. This fixes a regression since EbuildPhase no longer calls doebuild(), and therefore _prepare_env_file() needs to be called now.
* Remove unused attributes from classes.Zac Medico2010-08-161-4/+4
|
* Remove all svn $Id keywords.Zac Medico2010-03-241-1/+0
|
* Remove fetch log after successful fetch.Zac Medico2010-03-021-0/+8
| | | | svn path=/main/trunk/; revision=15721
* Logg errors that occur during binpkg extraction.Zac Medico2010-02-121-3/+6
| | | | svn path=/main/trunk/; revision=15343
* Handle encoding/decoding of unicode when using the xpak api.Zac Medico2009-09-291-1/+2
| | | | | | | Use tbz2.get_data() instead of tbz2.getfile() when reading multiple values, in order to avoid multiple tbz2.scan() and searchindex() calls. svn path=/main/trunk/; revision=14461
* Update syntax of numbers for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-201-1/+1
| | | | | | (2to3-3.1 -f numliterals -nw ${FILES}) svn path=/main/trunk/; revision=14292
* Use _encodings where appropriate.Zac Medico2009-08-191-5/+11
| | | | svn path=/main/trunk/; revision=14099
* Update imports to import portage.os (with unicode wrappers), and useZac Medico2009-08-111-8/+3
| | | | | | _unicode_encode() and _unicode_decode() where appropriate. svn path=/main/trunk/; revision=13993
* Open file in text mode (unicode) where appropriate.Zac Medico2009-08-051-2/+5
| | | | svn path=/main/trunk/; revision=13913
* 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. Thanks toZac Medico2009-06-221-0/+301
Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch. svn path=/main/trunk/; revision=13663