summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Make USE=prefix enable EPREFIX in all EAPIs.Zac Medico2011-12-071-2/+11
| | | | | | | | This is safe because the prefix flag should be masked in all non-prefix profiles, and older EAPIs would otherwise be useless with prefix configurations. This brings compatibility with the prefix branch of portage, which also supports EPREFIX for all EAPIs (for obvious reasons).
* action_sync: fix git_sync_timestamps KeyErrorZac Medico2011-12-061-8/+15
| | | | This fixes the case where $PORTDIR doesn't exist prior to sync.
* fix logic from last commitZac Medico2011-12-041-1/+2
|
* depgraph: fix case insensitive search for unsatZac Medico2011-12-041-3/+11
| | | | | | | This fixes an interaction between the code from commits 9ce6da43ab90c4dab97ebf3b8339e5dbc113a0a8 and cbe44d92ff13b8a22f5b4215b73078ce600c6bf4, so that we don't discard matches that are identical except for differnces in upper/lower case.
* action_depclean: fix return codeZac Medico2011-12-022-5/+10
| | | | | | The fixes some cases where emerge.log would show that depclean was unsuccessful when it was really successful but there was nothing to remove.
* Handle OSError from os.read and loop if needed.Zac Medico2011-12-013-23/+29
| | | | | | Looping fixes EbuildMetadataPhase failures for ebuilds that produce more than 4096 bytes of metadata, broken since commit b432a1b3051d91546649e8f3190675767461d8e8.
* process._exec: tweak opt_name for PyPyZac Medico2011-12-011-1/+6
| | | | | PyPy 1.7 will die due to "libary path not found" if argv[0] does not contain the full path of the binary.
* PipeReader: use os.read/writeZac Medico2011-12-011-19/+11
|
* test_uniqueArray.py: fix 'is' usage PyPy incompatZac Medico2011-12-011-3/+3
|
* AsynchronousLock: use os.read/writeZac Medico2011-12-011-15/+28
| | | | | | Similar to commit b432a1b3051d91546649e8f3190675767461d8e8, don't use unecessary file objects. It also happens that these changes fix compatibility issues with PyPy.
* checksum.py: detect PyPy crashes in hashlibZac Medico2011-12-011-0/+29
| | | | | | | | Use a fork to try and PyPy by digesting random data with hashlib functions. It doesn't look like a bug has been reported upstream for this yet, so it may or may not be reproducible by others. Anyway, this allows me to avoid crashing the main PyPy process until I find a real fix.
* _emerge/EbuildMetadataPhase.py: use os.read()Zac Medico2011-12-011-7/+13
| | | | | | There's no need for a file object, and file objects introduce complexity that can lead to bugs as mentioned in bug 337465 comment 31, so use os.read() directly on the file descriptor.
* _emerge/SubProcess.py: support int fd in _filesZac Medico2011-12-011-1/+4
|
* MergeProcess: check if _elog_reader_fd is NoneZac Medico2011-12-011-1/+1
| | | | | It seems saner to check for None, given that _elog_reader_fd is an int, even though it will probably never be zero.
* locks.py: use flock with PyPy for issue 747Zac Medico2011-12-011-0/+5
|
* doebuild: disable noauto for binary packagesZac Medico2011-11-291-0/+4
|
* movefile: tweak unicode handlingZac Medico2011-11-281-8/+12
|
* movefile: chown/mod before renameZac Medico2011-11-281-15/+7
|
* movefile: avoid redundant string concatenationsZac Medico2011-11-281-6/+7
|
* movefile: remove unused lchownZac Medico2011-11-281-4/+2
|
* Preserve extended attributes on regular files when using Python >=3.3.Arfrever Frehtes Taifersar Arahesis2011-11-291-2/+14
|
* Revert "dblink.mergeme(): Merge files in alphabetic order."v2.2.0_alpha79Zac Medico2011-11-271-1/+1
| | | | | | | | This reverts commit 1d4ac47c28706094230cb2c4e6ee1c1c71629aa0. As discussed on the gentoo-portage-dev mailing list, if we don't have a compelling reason to sort here then it's just a waste: http://archives.gentoo.org/gentoo-portage-dev/msg_67b08fcd7a1b832b347caf1b19362cbb.xml
* _get_dep_chain: fix KeyError, bug #392059Zac Medico2011-11-271-13/+22
| | | | | | | This fixes a regression since commit 57cc4e3e8991e7c4394d1dff7698aa62ed2a286b, which make a faulty assumption that the digraph contained all of the edges contained in parent_atoms.
* config: fix make.defaults inherit of make.globalsv2.2.0_alpha78Zac Medico2011-11-251-22/+23
| | | | | | | | Since commit e544ee13527a0568de2b556510280ed96fc1b3ff, make.defaults inheritance of variables from make.globals has been broke, since that commit excluded make.globals from expand_map. This broke settings like PORTAGE_ELOG_CLASSES="${PORTAGE_ELOG_CLASSES} qa" from the developer profile, as reported in bug #391323, comment #4.
* dblink.mergeme(): Merge files in alphabetic order.Arfrever Frehtes Taifersar Arahesis2011-11-261-1/+1
|
* elog/mod_syslog: fix 1 char msgs, bug #390965Zac Medico2011-11-251-0/+5
|
* repoman: fix svn "abiguous workdir", bug #391199v2.2.0_alpha77Zac Medico2011-11-211-0/+4
|
* emerge --help: show --quiet-buildZac Medico2011-11-201-1/+1
|
* _prepare_self_update: detect if already calledv2.2.0_alpha76Zac Medico2011-11-181-0/+4
| | | | | This is should never be triggered by portage, but it's possible that an API consumer might trigger it somehow.
* Schduler: _check_temp_dir in _handle_self_updateZac Medico2011-11-181-2/+9
|
* collect_ebuild_messages: handle \r, bug #390833Zac Medico2011-11-181-2/+3
|
* resolver/output: unused importsZac Medico2011-11-171-4/+3
|
* _make_msgfunction: convert to classZac Medico2011-11-171-6/+10
|
* config: tweak mapping implementation moreZac Medico2011-11-171-2/+4
|
* config: centralize mapping impl in _getitem/popZac Medico2011-11-171-15/+21
|
* collect_ebuild_messages: validate msg typeZac Medico2011-11-171-1/+11
| | | | | | | This will handle invalid message types like the one that triggers the KeyError in dblink._elog_process for bug #390833. It will also output the content of the line in order to help diagnose the source of corruption.
* emerge --changelog: omit entry for current verZac Medico2011-11-171-1/+2
| | | | | This is a regression from commit 69d7f169ba2e27cf56746791331c63a019357100, reported in bug #390893.
* depgraph: don't merge portage asapZac Medico2011-11-172-17/+0
| | | | | There's no need to do this anymore, because we don't restart since commit d3f704a425a50b5cfa997a25866929b30f1b7d0f.
* Tweak the last commit.Zac Medico2011-11-172-11/+9
|
* Skip the "resume after portage update" routine.Zac Medico2011-11-177-194/+92
| | | | | | | Instead, finish the whole job using a copy of the currently running instance. This allows us to avoid the complexities of emerge --resume, such as the differences in option handling between different portage versions, as reported in bug #390819.
* Show action as --action in emerge.log arg list.Zac Medico2011-11-171-1/+1
|
* Show option arguments in emerge.log arg list.Zac Medico2011-11-171-1/+11
|
* pkg_pretend: handle interruption morev2.2.0_alpha75Zac Medico2011-11-161-0/+6
|
* pkg_pretend: tweak final cleanup logicZac Medico2011-11-161-11/+9
| | | | | This ensures that the clean phase will not run if the user interrupts emerge before the build dir is locked.
* Scheduler.py: remove unused vars (pyflakes)Zac Medico2011-11-161-8/+0
|
* Tweak emerge --quiet-build default handling.Zac Medico2011-11-162-4/+1
| | | | | Since --quiet-build is enabled be default, there's no need to have it in the options dict except when it is enabled.
* pkg_pretend: lock before unpacking binpkg xpakZac Medico2011-11-161-17/+20
| | | | This fixes a regression from the previous commit.
* pkg_pretend: clean first for bug #390711Zac Medico2011-11-162-13/+37
|
* emerge --quiet-build: don't set PORTAGE_QUIETZac Medico2011-11-161-1/+1
| | | | | | | The PORTAGE_QUIET controls lots of stuff that really should only be controlled by --quiet, especially now that --quiet-build is enabled by default. For example, PORTAGE_QUIET supresses the successful checksum display that is produced by emerge --fetchonly.
* xterm title HOSTNAME support, bug #390699Zac Medico2011-11-161-1/+8
|