summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* sandbox unsets ROOTPATH, so we have to back it up on the pythonZac Medico2007-11-301-1/+6
| | | | | | side then restore it on the bash side. svn path=/main/trunk/; revision=8768
* Add some variables such as TERM to the whitelist of variablesZac Medico2007-11-301-2/+13
| | | | | | | from the calling environment that are allowed into the ebuild environment. svn path=/main/trunk/; revision=8763
* Make config.environ() export PKGDIR to the ebuild environmentZac Medico2007-11-301-0/+7
| | | | | | | during the "package" phase since it's currently referenced there. svn path=/main/trunk/; revision=8759
* Bug #189417 - When ${T}/environment exists, isolate the ebuildZac Medico2007-11-301-8/+38
| | | | | | | | | environment from the calling environment. This makes it possible for the build to unset a variable that was inherited from the calling environment, and the variable will remain unset between phases. svn path=/main/trunk/; revision=8754
* Move environment.bz2 extraction from ebuild.sh to doebuild() onZac Medico2007-11-291-0/+36
| | | | | | | | | | | | the python side. The python will be able to use it's awareness of the ${T}/environment to decide what type of ebuild environment should be generated. For example, if the ebuild environment should be able to unset variables that have been inherited from the calling environment, the existence of ${T}/environment will indicate that the ebuild environment should be isolated from the calling environment. svn path=/main/trunk/; revision=8753
* Make elog_process() pre-load log modules that it can be calledZac Medico2007-11-291-0/+21
| | | | | | just for that purpose. svn path=/main/trunk/; revision=8751
* When portage reinstalls itself, pre-load elog modules inZac Medico2007-11-292-4/+13
| | | | | | | dblink.merge() since we won't be able to later if they get unmerged (happens when namespace changes). svn path=/main/trunk/; revision=8749
* Don't modify sys.path inside dblink.merge() because it doesn't seemZac Medico2007-11-291-4/+2
| | | | | | | to help and it triggers import errors for elog modules when downgrading to versions of portage that use the old namespace. svn path=/main/trunk/; revision=8747
* When portage reinstalls itself, copy both the bin and pymZac Medico2007-11-291-25/+26
| | | | | | | | directories to a temp dir. Insert the temporary PORTAGE_PYM_PATH as the first element of sys.path and register an atexit hook to clean up the temporary directories. svn path=/main/trunk/; revision=8743
* In dblink.treewalk(), make portage unmerge multiple instancesZac Medico2007-11-291-1/+2
| | | | | | | os sys-apps/portage in the same slot if necessary (needed when AUTOCLEAN=no is set). svn path=/main/trunk/; revision=8741
* Remove stray print statement.Zac Medico2007-11-291-1/+0
| | | | svn path=/main/trunk/; revision=8739
* 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