summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Bug #201848 - Make the ebuild command reject ebuilds that do not defineZac Medico2007-12-131-1/+6
| | | | | | SLOT. (trunk r8895) svn path=/main/branches/2.1.2/; revision=8902
* Bug #201848 - Mask ebuilds that do not define SLOT. (trunk r8894)Zac Medico2007-12-131-0/+2
| | | | svn path=/main/branches/2.1.2/; revision=8900
* Instead of calling sys.exit when a ParseError occurs in the configZac Medico2007-12-111-58/+20
| | | | | | | | | constructor, raise a ParseError and make emerge and portageq handle the error. This way consumers of the portage api can handle the ParseError rather than have their application exit. Thanks to lxnay for reporting. (trunk r8884) svn path=/main/branches/2.1.2/; revision=8886
* * Raise PermissionDenied from getconfig() when appropriate.Zac Medico2007-12-111-3/+5
| | | | | | | | * When available, make getconfig() include an invalid token in a ParseError message. (trunk r8883) svn path=/main/branches/2.1.2/; revision=8885
* * When installing a binary package, export the file name of the packageZac Medico2007-12-111-1/+8
| | | | | | | | | | | | | | | as PORTAGE_BINPKG_FILE in order to give bashrc users an opportunity to do various things such as remove binary packages after they're installed. * Add a note in ebuild.sh explaining why hardcoded bash lists are needed for backward compatibility with <portage-2.1.4 since they assume that a newly installed version of ebuild.sh will work for pkg_postinst, pkg_prerm, and pkg_postrm when portage is upgrading itself. (trunk r8878) svn path=/main/branches/2.1.2/; revision=8881
* Do an EBUILD_EXIT_STATUS_FILE sanity check in spawnebuild()Zac Medico2007-12-081-1/+10
| | | | | | | where it spawns misc-functions.sh after the install phase. (trunk r8874) svn path=/main/branches/2.1.2/; revision=8875
* Bug #189417 - Explicitly whitelist any remaining variables that areZac Medico2007-12-071-12/+40
| | | | | | | | allowed to leak into the ebuild environment. Also, fix spawnebuild to properly filter the env when it spawns misc-functions.sh after the install phase. (trunk r8863:8867) svn path=/main/branches/2.1.2/; revision=8868
* Bug #201506 - Make preprocess_ebuild_env() preserveZac Medico2007-12-061-1/+4
| | | | | | | | SANDBOX_{DENY,PREDICT,READ,WRITE} between all phases, except when the environment comes directly from environment.bz2. (trunk r8853) svn path=/main/branches/2.1.2/; revision=8854
* Remove redundant config.load_infodir() calls fromZac Medico2007-12-031-2/+0
| | | | | | | portage.pkgmerge() and dblink.unmerge() since it's already called in doebuild(). (trunk r8835) svn path=/main/branches/2.1.2/; revision=8836
* * Don't load the CATEGORY in config.load_infodir() since this value isZac Medico2007-12-031-22/+22
| | | | | | | | | critical for doebuild() operation and we already know the category. * Always call config.setcpv() prior to config.load_infodir() so that the CATEGORY is always known. (trunk r8830:88310 svn path=/main/branches/2.1.2/; revision=8832
* Bug #201090 - When portage creates a temp PORTAGE_BIN_PATH, put itZac Medico2007-12-031-1/+4
| | | | | | | inside PORTAGE_TMPDIR since, unlike /tmp, it can't be mounted with the "noexec" option. (trunk r8828) svn path=/main/branches/2.1.2/; revision=8829
* Make config.load_infodir() more fault tolerant for cases like bugZac Medico2007-12-031-5/+16
| | | | | | #201082. (trunk r8826) svn path=/main/branches/2.1.2/; revision=8827
* 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. (trunk r8822) svn path=/main/branches/2.1.2/; revision=8823
* * whitelist CCACHE_* and DISTCC_* variables in config.environ()Zac Medico2007-12-031-1/+4
| | | | | | | * unset CCACHE_* and DISTCC_* variables in save_ebuild_env() (trunk r8818) svn path=/main/branches/2.1.2/; revision=8819
* Synchronize self-reinstallation logic so that emerge will alwaysZac Medico2007-12-021-1/+2
| | | | | | | restart itself when dblink.merge() creates temporary copies of PORTAGE_{BIN,PYM}_PATH. (trunk r8803) svn path=/main/branches/2.1.2/; revision=8804
* 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. (trunk r8801) svn path=/main/branches/2.1.2/; revision=8802
* For portage.spawn() calls, use a _shell_quote() function to quoteZac Medico2007-12-021-19/+36
| | | | | | the path of the binary since. (trunk r8798) svn path=/main/branches/2.1.2/; revision=8799
* * 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 (trunk r8796) svn path=/main/branches/2.1.2/; revision=8797
* Move duplicate module loading code into a function. (trunk r8789)Zac Medico2007-12-011-15/+13
| | | | svn path=/main/branches/2.1.2/; revision=8790
* Add missing newline after message. (trunk r8787)Zac Medico2007-12-011-1/+2
| | | | svn path=/main/branches/2.1.2/; revision=8788
* 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. (trunk r8785) svn path=/main/branches/2.1.2/; revision=8786
* * whitelist PREROOTPATH in config.environ()Zac Medico2007-12-011-1/+1
| | | | | | | * filter PREROOTPATH in save_ebuild_env() (trunk r8781) svn path=/main/branches/2.1.2/; revision=8782
* * whitelist DISTDIR, PORTDIR, and PORTAGE_TMPDIR, PORTAGE_WORKDIR_MODE.Zac Medico2007-12-011-4/+12
| | | | | | * whitelist RPMDIR just for the "rpm" phase. (trunk r8779) svn path=/main/branches/2.1.2/; revision=8780
* 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. (trunk r8775:8777) svn path=/main/branches/2.1.2/; revision=8778
* In doebuild_environment(), fix KV logic so that itZac Medico2007-12-011-1/+2
| | | | | | | | never gets set during the "depend" phase. Also, use backup_changes() to properly cache the result. (trunk r8771) svn path=/main/branches/2.1.2/; revision=8773
* 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. (trunk r8768) svn path=/main/branches/2.1.2/; revision=8769
* Fix broken module loading logic.Zac Medico2007-11-301-6/+8
| | | | svn path=/main/branches/2.1.2/; revision=8767
* 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. (trunk r8763) svn path=/main/branches/2.1.2/; revision=8764
* Make config.environ() export PKGDIR to the ebuild environmentZac Medico2007-11-301-0/+7
| | | | | | | during the "package" phase since it's currently referenced there. (trunk r8759) svn path=/main/branches/2.1.2/; revision=8760
* Bug #189417 - When ${T}/environment exists, isolate the ebuildZac Medico2007-11-301-8/+74
| | | | | | | | | 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. (trunk r8752:8755) svn path=/main/branches/2.1.2/; revision=8756
* Make elog_process() pre-load log modules that it can be calledZac Medico2007-11-291-0/+19
| | | | | | just for that purpose. (trunk r8751) svn path=/main/branches/2.1.2/; revision=8752
* When portage reinstalls itself, pre-load elog modules inZac Medico2007-11-291-3/+10
| | | | | | | dblink.merge() since we won't be able to later if they get unmerged (happens when namespace changes). (trunk r8749) svn path=/main/branches/2.1.2/; revision=8750
* 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. (trunk r8745) svn path=/main/branches/2.1.2/; revision=8748
* 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. (trunk r8743) svn path=/main/branches/2.1.2/; revision=8744
* 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/branches/2.1.2/; revision=8742
* If portage is reinstalling itself, create a temporaryZac Medico2007-11-291-27/+81
| | | | | | | | copy of PORTAGE_BIN_PATH in order to avoid relying on on the new versions which may be incompatible. (trunk r8730:8739) svn path=/main/branches/2.1.2/; revision=8740
* Condense duplicate eerror log generation code into a singleZac Medico2007-11-281-20/+15
| | | | | | _eerror() function. svn path=/main/branches/2.1.2/; revision=8728
* 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. (trunk r8724) svn path=/main/branches/2.1.2/; revision=8725
* Add a sanity check in dblink.treewalk() so that a broken ebuildZac Medico2007-11-281-7/+46
| | | | | | | | | | | 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. (trunk r8720) svn path=/main/branches/2.1.2/; revision=8723
* Don't export PORTAGE_PACKAGE_EMPTY_ABORT to theZac Medico2007-11-281-1/+2
| | | | | | ebuild environment. (trunk r8721). svn path=/main/branches/2.1.2/; revision=8722
* Just use ${PN} instead of catpkgsplit().Zac Medico2007-11-271-3/+2
| | | | svn path=/main/branches/2.1.2/; revision=8717
* 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. (trunk r8714) svn path=/main/branches/2.1.2/; revision=8715
* Remove a redundant os.EX_OK check that exit_status_check() alreadyZac Medico2007-11-271-2/+1
| | | | | | handles internally. (trunk r8712) svn path=/main/branches/2.1.2/; revision=8713
* Fix logic wrt exit_status_check and elog_process in doebuild(). (trunk r8710)Zac Medico2007-11-271-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=8711
* Don't forget to unlink ${EBUILD_EXIT_STATUS_FILE} before each phase.Zac Medico2007-11-271-0/+4
| | | | | | (trunk r8706) svn path=/main/branches/2.1.2/; revision=8707
* Fix config.pop() so that is will properly raise a KeyError. (trunk r8704)Zac Medico2007-11-271-4/+11
| | | | svn path=/main/branches/2.1.2/; revision=8705
* 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. (trunk r8702) svn path=/main/branches/2.1.2/; revision=8703
* Make doebuild() use EBUILD_EXIT_STATUS_FILE sanity checks for theZac Medico2007-11-261-0/+2
| | | | | | extra misc-functions.sh preinst/postinst shell code. (trunk r8698) svn path=/main/branches/2.1.2/; revision=8699
* Make doebuild skip directory creation for the "cleanrm" command. (trunk r8696)Zac Medico2007-11-261-1/+2
| | | | svn path=/main/branches/2.1.2/; revision=8697
* Fix grammar. (trunk r8694)Zac Medico2007-11-261-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=8695