summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
...
* Bug #176467 - Filter out USE flags that aren't part of IUSE.Zac Medico2007-12-181-5/+35
| | | | | | | | | | | Some flags are considered to be implicit members of IUSE: * Flags derived from ARCH * Flags derived from USE_EXPAND_HIDDEN variables * Forced flags, such as those from {,package}use.force svn path=/main/trunk/; revision=8944
* Move the reusable ConsoleStyleFile and StyleWriter classes intoZac Medico2007-12-151-0/+52
| | | | | | the ouput module. svn path=/main/trunk/; revision=8934
* Add --buildpkgonly to the options lists that exempt fromZac Medico2007-12-131-2/+3
| | | | | | slot collisions and world file updates. svn path=/main/trunk/; revision=8917
* Use the BAD color class instead of hardcoded red.Zac Medico2007-12-131-1/+1
| | | | svn path=/main/trunk/; revision=8904
* Make portdbapi.visible() mask ebuilds that do not define SLOT.Zac Medico2007-12-131-0/+2
| | | | | | (branches/2.1.2 r8900) svn path=/main/trunk/; revision=8901
* Bug #201848 - Make the ebuild command reject ebuilds that do not defineZac Medico2007-12-131-1/+6
| | | | | | SLOT. svn path=/main/trunk/; revision=8895
* Bug #201848 - Mask ebuilds that do not define SLOT.Zac Medico2007-12-131-0/+4
| | | | svn path=/main/trunk/; revision=8894
* Bug #202036 - In case of blockers, bail out earlier so that laterZac Medico2007-12-131-19/+20
| | | | | | code can assume there are no blockers. svn path=/main/trunk/; revision=8889
* Instead of calling sys.exit when a ParseError occurs in the configZac Medico2007-12-112-62/+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. svn path=/main/trunk/; revision=8884
* * Raise PermissionDenied from getconfig() when appropriate.Zac Medico2007-12-111-3/+5
| | | | | | | * When available, make getconfig() include an invalid token in a ParseError message. svn path=/main/trunk/; revision=8883
* * 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. svn path=/main/trunk/; revision=8878
* 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. svn path=/main/trunk/; revision=8874
* Bug #189417 - Comment on how the whitelist and BASH_ENV are used toZac Medico2007-12-071-3/+8
| | | | | | prevent environment leakage. svn path=/main/trunk/; revision=8867
* Bug #189417 - Whitelist BASH_ENV since we need to have it set in orderZac Medico2007-12-071-1/+1
| | | | | | | to prevent sandbox from causing env leakage by sourcing /etc/profile via it's bashrc. svn path=/main/trunk/; revision=8866
* Bug #189417 - Explicitly whitelist any remaining variables that areZac Medico2007-12-071-14/+32
| | | | | | | | | | 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. There is still some remaining leakage that seems to come from something in the ebuild environment sourcing /etc/profile. svn path=/main/trunk/; revision=8865
* Add a TODO note about remaining work for bug #189417.Zac Medico2007-12-071-0/+5
| | | | svn path=/main/trunk/; revision=8864
* Perform set argument validation in emerge_main() even forZac Medico2007-12-071-38/+38
| | | | | | values actions that need to expland sets themselves. svn path=/main/trunk/; revision=8863
* Remove automatic "system" and "world" set creation since we canZac Medico2007-12-071-9/+0
| | | | | | probably rely on having a complete config. svn path=/main/trunk/; revision=8862
* 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. svn path=/main/trunk/; revision=8853
* Keep the RootConfig.sets attribute in sync with the SetConfig.Zac Medico2007-12-051-0/+1
| | | | svn path=/main/trunk/; revision=8850
* Make SetConfig.getSets() return a copy of the psets attributeZac Medico2007-12-052-2/+3
| | | | | | | instead of a direct reference. Fix the to stop relying on having the direct reference. svn path=/main/trunk/; revision=8849
* Show ? if the installed package is missing aZac Medico2007-12-051-5/+1
| | | | | | | | repository label. The stable version of portage creates these labels now, so false positives won't be as common as they used to be. svn path=/main/trunk/; revision=8846
* bootstrap.sh expects that the "system" set always exists, so createZac Medico2007-12-051-3/+14
| | | | | | it automatically if necessary. svn path=/main/trunk/; revision=8845
* In order to know exactly which atoms/sets should be added to theZac Medico2007-12-051-36/+43
| | | | | | | | world file, the depgraph performs set expansion later. It will get confused about where the atoms came from if it's not allowed to expand them itself. svn path=/main/trunk/; revision=8844
* fix another typoMarius Mauch2007-12-041-1/+1
| | | | svn path=/main/trunk/; revision=8841
* perform sanity checks for set configuration even if myaction is NoneMarius Mauch2007-12-042-6/+7
| | | | svn path=/main/trunk/; revision=8840
* Fix setconfig loader to use config files instead of hardcoded fallbacksMarius Mauch2007-12-042-51/+20
| | | | svn path=/main/trunk/; revision=8839
* make sure we only remove files that were previously preservedMarius Mauch2007-12-041-2/+6
| | | | svn path=/main/trunk/; revision=8837
* Remove redundant config.load_infodir() calls fromZac Medico2007-12-032-2/+0
| | | | | | | portage.pkgmerge() and dblink.unmerge() since it's already called in doebuild.() svn path=/main/trunk/; revision=8835
* Fix typo in config.load_infodir() return value logic.Zac Medico2007-12-031-1/+1
| | | | svn path=/main/trunk/; revision=8831
* * Don't load the CATEGORY in config.load_infodir() since this value isZac Medico2007-12-032-23/+23
| | | | | | | | 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. svn path=/main/trunk/; revision=8830
* 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. svn path=/main/trunk/; revision=8828
* 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