summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Make config.load_infodir() more fault tolerant for cases like bugZac Medico2007-12-031-5/+16
| | | | | | #201082. svn path=/main/trunk/; revision=8826
* Bug #201082 - Don't call config.load_infodir() prior to pkg_postinst()Zac Medico2007-12-031-1/+0
| | | | | | | | | because it's not needed and the ebuild path that's passed in for postinst is may be from the portage tree, which causes load_infodir() to discard critical metadata such as CATEGORY without realoading it. svn path=/main/trunk/; revision=8822
* implement the final part of FEATURES=preserved-libs and remove previously ↵Marius Mauch2007-12-033-4/+40
| | | | | | preserved libs that don't have any consumers left. Also fix the notice if preserved libs are found to use the preserved-rebuild package set instead of revdep-rebuild. svn path=/main/trunk/; revision=8821
* * whitelist CCACHE_* and DISTCC_* variables in config.environ()Zac Medico2007-12-031-1/+4
| | | | | | * unset CCACHE_* and DISTCC_* variables in save_ebuild_env() svn path=/main/trunk/; revision=8818
* Synchronize self-reinstallation logic so that emerge will alwaysZac Medico2007-12-022-6/+3
| | | | | | | restart itself when dblink.merge() creates temporary copies of PORTAGE_{BIN,PYM}_PATH. svn path=/main/trunk/; revision=8803
* In dblink.treewalk(), tweak the "Safely unmergingZac Medico2007-12-021-9/+13
| | | | | | | already-installed instance" logic to make sure that it works in all possible cases. svn path=/main/trunk/; revision=8801
* For portage.spawn() calls, use a _shell_quote() function to quoteZac Medico2007-12-021-15/+35
| | | | | | the path of the binary since. svn path=/main/trunk/; revision=8798
* * whitelist some misc variables from the calling environmentZac Medico2007-12-011-4/+9
| | | | | | | | * blacklist the same variables in save_ebuild_env() so that the latest values from the calling environment always override those from the ebuild environment svn path=/main/trunk/; revision=8796
* Show the pid in the "starting parallel fetching" message.Zac Medico2007-12-011-1/+2
| | | | svn path=/main/trunk/; revision=8794
* When os.waitid() raises OSError, discard the pid since there'sZac Medico2007-12-011-2/+3
| | | | | | no need to wait on it again. svn path=/main/trunk/; revision=8792
* After each merge, collect status from child processesZac Medico2007-12-011-2/+33
| | | | | | | in order to clean up zombies (such as the parallel-fetch process). svn path=/main/trunk/; revision=8791
* Move duplicate module loading code into a function.Zac Medico2007-12-011-17/+13
| | | | svn path=/main/trunk/; revision=8789
* Add missing newline after message.Zac Medico2007-12-011-1/+2
| | | | svn path=/main/trunk/; revision=8787
* In create_trees(), when isolating the environment of the ROOT=/ config,Zac Medico2007-12-011-2/+4
| | | | | | | use it's env.d keys as a blacklist to make env.d override the calling environment. svn path=/main/trunk/; revision=8785
* * whitelist PREROOTPATH in config.environ()Zac Medico2007-12-011-1/+1
| | | | | | * filter PREROOTPATH in save_ebuild_env() svn path=/main/trunk/; revision=8781
* * whitelist DISTDIR, PORTDIR, and PORTAGE_TMPDIR, PORTAGE_WORKDIR_MODE.Zac Medico2007-12-011-4/+12
| | | | | | * whitelist RPMDIR just for the "rpm" phase. svn path=/main/trunk/; revision=8779
* Update comments about ROOTPATH:Zac Medico2007-12-011-1/+2
| | | | | | | sandbox's bashrc sources /etc/profile which unsets ROOTPATH, so we have to back it up and restore it svn path=/main/trunk/; revision=8777
* In doebuild_environment(), fix KV logic so that it neverZac Medico2007-12-011-1/+2
| | | | | | | gets set during the "depend" phase. Also, use backup_changes() to properly cache the result. svn path=/main/trunk/; revision=8771
* 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