summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Auto-generate PORTAGE_INST_GID/UID for prefix.Zac Medico2011-12-091-4/+20
| | | | | | For prefix environments, default to the UID and GID of the top-level EROOT directory. This allows us to avoid using hardcoded defaults. It's still possible to override these variables via make.conf.
* Delete portage.dbapi.porttree._repo_info class and _repo_info attribute ofArfrever Frehtes Taifersar Arahesis2011-12-093-27/+9
| | | | | portage.dbapi.porttree.portdbapi objects. Migrate consumers to repositories attribute of portage.dbapi.porttree.portdbapi objects.
* tests/bin: sanitize envZac Medico2011-12-081-3/+3
| | | | This fixes interference from FEATURES=force-prefix in the env.
* Add eclass_db attribute in portage.repository.config.RepoConfig objects.Arfrever Frehtes Taifersar Arahesis2011-12-092-17/+23
|
* load_emerge_config: init portage.data earlierZac Medico2011-12-081-7/+10
| | | | | The portage_uid initialization here must to happend before the _init_dirs() calls.
* Enable PORTAGE_GRPNAME/USERNAME in make.conf.Zac Medico2011-12-084-59/+118
| | | | | | | | This is handy for prefix installs, since it allows these variables to be set in make.conf rather than having them hardcoded. Eventually, the corresponding portage.data constants may be deprecated in favor of config attributes, since it's conceivable that multiple configurations with different constants could be used simultaneously.
* Add portage.const.EPREFIX, for prefix installs.Zac Medico2011-12-081-0/+18
| | | | | | | The EPREFIX for the current install is hardcoded here, but access to this constant should be minimal, in favor of access via the EPREFIX setting of a config instance (since it's possible to contruct a config instance with a different EPREFIX).
* dispatch-conf: substitute ${EPREFIX} archive-dirZac Medico2011-12-081-0/+5
| | | | This allows prefix installs to avoid hardcoding archive-dir.
* make.globals: use ${EPREFIX} for PORTDIR, etc...Zac Medico2011-12-081-0/+3
|
* Use 'wget' instead of /usr/bin/wget everywhere.Zac Medico2011-12-081-1/+1
| | | | This reduces the amount of patching needed for prefix installs.
* Whitelist/filter __PORTAGE_TEST_EPREFIX.Zac Medico2011-12-081-1/+1
|
* Support FEATURES=force-prefix.Zac Medico2011-12-082-11/+8
| | | | | | | This adjusts the logic from commit ff52f9dc31004becb8022e6437088d01917f413c to use FEATURES=force-prefix instead of USE=prefix. This has the advantage that we don't have to make any assumptions about the USE=prefix.
* dispatch-conf: experimental prefix supportZac Medico2011-12-071-2/+3
|
* 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.