summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix references to EBUILD_SH_BINARY so that they work properlyZac Medico2007-11-291-10/+11
| | | | | | with variable PORTAGE_BIN_PATH. svn path=/main/trunk/; revision=8738
* Make dblink.treewalk() properly delete the installed instance afterZac Medico2007-11-291-0/+2
| | | | | | it unmerges it. svn path=/main/trunk/; revision=8737
* Fix a typo.Zac Medico2007-11-291-1/+2
| | | | svn path=/main/trunk/; revision=8736
* Fix more references to MISC_SH_BINARY so that they work properlyZac Medico2007-11-291-8/+16
| | | | | | with variable PORTAGE_BIN_PATH. svn path=/main/trunk/; revision=8735
* In doebuild, fix paths to ebuild.sh and misc-functions.sh soZac Medico2007-11-281-2/+7
| | | | | | that they work with variable PORTAGE_BIN_PATH. svn path=/main/trunk/; revision=8734
* Fix references to PORTAGE_BIN_PATH in doebuild() to use the configZac Medico2007-11-281-7/+8
| | | | | | | setting since it may be a temp directory when portage is reinstalling itself. svn path=/main/trunk/; revision=8733
* Enable the EBUILD_EXIT_STATUS_FILE sanity check when portage isZac Medico2007-11-281-6/+0
| | | | | | | reinstalling itself since the check is reliable in this case now that a temporary PORTAGE_BIN_PATH is created. svn path=/main/trunk/; revision=8732
* If portage is reinstalling itself, create a temporaryZac Medico2007-11-281-1/+46
| | | | | | | copy of PORTAGE_BIN_PATH in order to avoid relying on on the new versions which may be incompatible. svn path=/main/trunk/; revision=8731
* In chk_updated_cfg_files(), avoid scanning for config files forZac Medico2007-11-281-0/+4
| | | | | | | | paths that aren't writable by the current user. This prevents Permission denied errors from being triggered later when trying to scan subdirectories that are inaccessible. svn path=/main/trunk/; revision=8726
* Disable PORTAGE_PACKAGE_EMPTY_ABORT by default sinceZac Medico2007-11-281-1/+1
| | | | | | | the scrollkeeper-9999 upgrade will trigger a false positive. Thanks to leio for reporting. svn path=/main/trunk/; revision=8724
* Don't export PORTAGE_PACKAGE_EMPTY_ABORT to the ebuild environment.Zac Medico2007-11-281-1/+2
| | | | svn path=/main/trunk/; revision=8721
* Add a sanity check in dblink.treewalk() so that a broken ebuildZac Medico2007-11-281-5/+41
| | | | | | | | | | that doesn't install any files will not be able to replace a package in the same slot that really installs files. This check can be bypassed by manually unmerging the old package or by setting PORTAGE_PACKAGE_EMPTY_ABORT="0" in /etc/make.conf. svn path=/main/trunk/; revision=8720
* Just use ${PN} instead of catpkgsplit().Zac Medico2007-11-271-3/+2
| | | | svn path=/main/trunk/; revision=8716
* portage upgrade or downgrade invalidates EBUILD_EXIT_STATUS_FILEZac Medico2007-11-271-5/+11
| | | | | | | sanity checks since ebuild.sh portage version may differ from the current instance that is running in python. svn path=/main/trunk/; revision=8714
* Remove a redundant os.EX_OK check that exit_status_check() alreadyZac Medico2007-11-271-2/+1
| | | | | | handles internally. svn path=/main/trunk/; revision=8712
* Fix logic wrt exit_status_check and elog_process in doebuild().Zac Medico2007-11-271-1/+1
| | | | svn path=/main/trunk/; revision=8710
* Don't forget to unlink ${EBUILD_EXIT_STATUS_FILE} before each phase.Zac Medico2007-11-271-0/+4
| | | | svn path=/main/trunk/; revision=8706
* Fix config.pop() so that is will properly raise a KeyError.Zac Medico2007-11-271-4/+11
| | | | svn path=/main/trunk/; revision=8704
* Bug #200231 - Make dir_get_metadata() handle an exception thrownZac Medico2007-11-271-2/+11
| | | | | | from dir_get_list() when there's a problem connection problem. svn path=/main/trunk/; revision=8702
* Make doebuild() use EBUILD_EXIT_STATUS_FILE sanity checks for theZac Medico2007-11-261-0/+2
| | | | | | extra misc-functions.sh preinst/postinst shell code. svn path=/main/trunk/; revision=8698
* Make doebuild skip directory creation for the "cleanrm" command.Zac Medico2007-11-261-1/+2
| | | | svn path=/main/trunk/; revision=8696
* Fix grammar.Zac Medico2007-11-261-1/+1
| | | | svn path=/main/trunk/; revision=8694
* * In doebuild(), don't create directories for the "clean" or "unmerge".Zac Medico2007-11-261-5/+5
| | | | | | * Fix dyn_clean() to clean the status file and return early when appropriate. svn path=/main/trunk/; revision=8692
* Make config.pop() properly call config.modifying().Zac Medico2007-11-261-0/+1
| | | | svn path=/main/trunk/; revision=8690
* Implement config.pop().Zac Medico2007-11-261-0/+6
| | | | svn path=/main/trunk/; revision=8688
* --buildpkgonly will not merge anything, soZac Medico2007-11-261-0/+7
| | | | | | it cancels all binary package options. svn path=/main/trunk/; revision=8683
* Bug #200313 - Detect and report when an ebuild phaseZac Medico2007-11-261-2/+71
| | | | | | | | | | | | | | | | exits unexpectedly. This is type of behavior is known to be triggered by things such as failed variable assignments (bug #190128) or bad substitution errors (bug #200313). We use a EBUILD_EXIT_STATUS_FILE environment variable to specify a file that the shell code is supposed to create when it exits in a normal manner. If the file does not get created like it's supposed to be then we can conclude that the shell has exited in some unexpected way. svn path=/main/trunk/; revision=8682
* Filter more misc environment variables.Zac Medico2007-11-261-2/+17
| | | | svn path=/main/trunk/; revision=8676
* Add NOCONFMEM to config._environ_filter.Zac Medico2007-11-261-1/+2
| | | | svn path=/main/trunk/; revision=8672
* * Move filtering of a bunch of portage config variables fromZac Medico2007-11-261-1/+13
| | | | | | | | save_ebuild_env() to config.environ(). * Add EMERGE_FROM to the READONLY_PORTAGE_VARS list. svn path=/main/trunk/; revision=8670
* Bug #124041 - Make emerge show an informative warning message when oneZac Medico2007-11-263-6/+50
| | | | | | | | or more eclasses override eclasses from PORTDIR. The warning can be permanently disabled by setting PORTAGE_ECLASS_WARNING_ENABLE="0" in /etc/make.conf. svn path=/main/trunk/; revision=8668
* * Load environment.bz2 for the pkg_config() phase.Zac Medico2007-11-251-1/+7
| | | | | | * Run the "clean" phase if pkg_config() succeeds. svn path=/main/trunk/; revision=8651
* Implement loading of environment.bz2 for the pkg_info() phase.Zac Medico2007-11-251-2/+27
| | | | | | | | | | | Since a temporary directory is required for processing of ${T}/environment, and we want a user who's not in the portage group to be able to run the pkg_info() phase, PORTAGE_TMPDIR is temporarily overridden with a directory created by mkdtemp. To make this work, doebuild() creates the tempdir and cleans it up in a finally block. svn path=/main/trunk/; revision=8649
* When binarytree.populate() finds missing metadata, specify which keysZac Medico2007-11-241-4/+18
| | | | | | are missing so that the user has a clue about what is wrong. svn path=/main/trunk/; revision=8638
* Sort hashes for predictable output from Manifest._createManifestEntries().Zac Medico2007-11-231-0/+1
| | | | svn path=/main/trunk/; revision=8615
* When filtering the backupenv in create_trees(), be moreZac Medico2007-11-231-1/+15
| | | | | | | selective and ensure that special variables that come from the config constructor are preserved. svn path=/main/trunk/; revision=8609
* In depgraph.altlist(), measure the bias of circularZac Medico2007-11-221-0/+20
| | | | | | | RDEPEND <-> PDEPEND relationships and use it to optimize merge order. svn path=/main/trunk/; revision=8593
* Generate an eerror elog message when an ebuild prerm orZac Medico2007-11-212-21/+15
| | | | | | postrm phase fails. svn path=/main/trunk/; revision=8577
* When ROOT != "/" we only want overrides from the callingZac Medico2007-11-201-0/+7
| | | | | | | | | environment to apply to the config that's associated with ROOT != "/", so we wipe out the "backupenv" for the config that is associated with ROOT == "/" and regenerate it's incrementals. Thanks to solar for the suggestion. svn path=/main/trunk/; revision=8539
* Disable logging and ${T}/environment saving during theZac Medico2007-11-191-1/+1
| | | | | | pkg_info() phase. svn path=/main/trunk/; revision=8526
* Use the existing RootConfig class to serve as a replacement forZac Medico2007-11-191-64/+58
| | | | | | | | | the EmergeConfig class. They both served roughly the same purpose and it was messy the way that EmergeConfig inherited from the portage.config class. It's better to avoid inheritance here, expecially since it doesn't provide anything really useful. svn path=/main/trunk/; revision=8525
* Fix PROFILE_ONLY_VARIABLES handling in the config constructorZac Medico2007-11-191-6/+4
| | | | | | | so that variables are appropriately filtered from "backupenv", since otherwise they can leak in from there. svn path=/main/trunk/; revision=8524
* Bug #198398 - Enable Manifest generation when there are no hashZac Medico2007-11-182-5/+17
| | | | | | | | | | functions available for types such as RMD160. Now it's possible to generate a Manifest when python-2.5 is built without ssl support. MANIFEST1_REQUIRED_HASH and MANIFEST2_REQUIRED_HASH are the only two functions that are strictly required now (MD5 and SHA1). svn path=/main/trunk/; revision=8521
* Fix NEEDED logic in vardbapi.aux_get() so that emptyZac Medico2007-11-181-1/+1
| | | | | | NEEDED doesn't trigger unnecessary cache pulls. svn path=/main/trunk/; revision=8520
* Fix --usepkgonly code in depgraph.select_files() so that itZac Medico2007-11-171-0/+2
| | | | | | only operates on the Package type that it expects. svn path=/main/trunk/; revision=8519
* Clean up vardbapi.counter_tick_core() and replace shell codeZac Medico2007-11-171-47/+27
| | | | | | with pure python. svn path=/main/trunk/; revision=8518
* Speed up LibraryPackageMap.update() by pulling NEEDED from theZac Medico2007-11-161-2/+10
| | | | | | | | | | vardbapi.aux_get() cache. This greatly reduces the amount of needless IO that has been happening just prior to the postinst phase in dblink.treewalk(). We may want to consider having LibraryPackageMap work directly from the vardbapi instead of creating the intermediate /var/cache/edb/library_consumers file. svn path=/main/trunk/; revision=8516
* Don't export ${IMAGE} to the ebuild environment anymore sinceZac Medico2007-11-161-2/+0
| | | | | | everything uses ${D} now (including the entire tree). svn path=/main/trunk/; revision=8512
* Bug #199311 - Make dblink.getcontents() show the path of theZac Medico2007-11-161-11/+10
| | | | | | CONTENTS file when any kind of parse error occurs. svn path=/main/trunk/; revision=8511
* Make dir_get_metadata() return early if the current user doesZac Medico2007-11-151-0/+7
| | | | | | | not have write access to /var/cache/edb. Thanks to Cardoe for reporting. svn path=/main/trunk/; revision=8502