summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix punctuation and spelling. Thanks to Arfrever Frehtes TaifersarZac Medico2007-12-152-8/+8
| | | | | | Arahesis <arfrever.fta@gmail.com>. svn path=/main/trunk/; revision=8932
* Split out a format_qa_output() function to eliminate duplicate code.Zac Medico2007-12-151-59/+57
| | | | svn path=/main/trunk/; revision=8930
* Instead of all modes, only in commit mode save an extra copy of QAZac Medico2007-12-151-1/+3
| | | | | | output for display in $EDITOR. svn path=/main/trunk/; revision=8928
* Replace hardcoded green, yellow, and red with GOOD, WARN, and BAD.Zac Medico2007-12-151-3/+3
| | | | svn path=/main/trunk/; revision=8927
* Save QA output so that it can be conveniently displayedZac Medico2007-12-151-13/+99
| | | | | | | | | | | | | | in $EDITOR while the user creates a commit message. Otherwise, the user would not be able to see this output once the editor has taken over the screen. Output is done through a formatter object where it is captured for later use. A file-like object that behaves something like the portage.output.colorize() function is used to transfor style identifiers from the formatter framework into actual console codes. svn path=/main/trunk/; revision=8925
* Prompt the user before letting the editorZac Medico2007-12-141-0/+5
| | | | | | | take over the screen so there is an opportunity to review any QA warnings. svn path=/main/trunk/; revision=8923
* Add support for getting a commit message using an editor definedZac Medico2007-12-141-8/+81
| | | | | | by the EDITOR environment variable. svn path=/main/trunk/; revision=8921
* Add support for multi-line commit message input by using EOFZac Medico2007-12-141-6/+10
| | | | | | as a delimiter (Ctrl-d) instead of a new line. svn path=/main/trunk/; revision=8920
* 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
* Disable the "QA Notice: Pre-stripped files" message when RESTRICTZac Medico2007-12-131-6/+9
| | | | | | | | contains "strip" or "binchecks". This is needed at least for the glibc ebuild since it calls prepallstrip directly, resulting in it being called twice. Thanks to loki_val for reporting. svn path=/main/trunk/; revision=8915
* Bug #202126 - Replace an obsolete reference to `emerge --help config`Zac Medico2007-12-131-2/+4
| | | | | | with a reference to the CONFIGURATION FILES section of emerge(1). svn path=/main/trunk/; revision=8913
* Make sure that PORTAGE_SANDBOX_* variables can never be setZac Medico2007-12-131-1/+1
| | | | | | by "${T}"/environment. svn path=/main/trunk/; revision=8911
* Allow FEATURES to persist between phases since the user mightZac Medico2007-12-132-4/+15
| | | | | | | | | | | want to modify it via bashrc to enable things like splitdebug and installsources for specific packages. They should be able to modify it in pre_pkg_setup() and have it persist all the way through the install phase. However, if FEATURES exist inside environment.bz2 then they should be overridden by current settings. svn path=/main/trunk/; revision=8909
* Remove extra _ typo.Zac Medico2007-12-131-2/+2
| | | | svn path=/main/trunk/; revision=8907
* Properly filter SANDBOX_ON from the environment. When sourcingZac Medico2007-12-131-1/+16
| | | | | | | | | ${T}/environment it's a bit tricky because we have to temporarily disable sandbox since the SANDBOX_{DENY,READ,PREDICT,_WRITE} values we've just loaded may be unusable (triggering in spurious sandbox violations) until we've merged them with our current values. svn path=/main/trunk/; revision=8906
* Use the BAD color class instead of hardcoded red.Zac Medico2007-12-132-2/+2
| | | | 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
* Do the sanity check for bug #198398 as early as possible.Zac Medico2007-12-131-15/+18
| | | | svn path=/main/trunk/; revision=8897
* Bug #201771 - Make unpack() detect common errors such as absoluteZac Medico2007-12-131-5/+6
| | | | | | | paths that start with ${DISTDIR} and die an appropriate error message. Thanks to grobian for this patch. svn path=/main/trunk/; revision=8896
* 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
* Use the sed -r option to enable extended regular expressions so thatZac Medico2007-12-131-3/+3
| | | | | | commonly used characters like (, ), and + don't have to be escaped. svn path=/main/trunk/; revision=8893
* Bug #202068 - In order to filter unwanted variable assignments outZac Medico2007-12-132-1/+53
| | | | | | | | of the bash environment, use a filter-bash-environment.py script that behaves similar to egrep -v except that it leaves bash here- documents intact. svn path=/main/trunk/; revision=8892
* In filter_readonly_variables(), replace 'declare -r ' with 'declare 'Zac Medico2007-12-131-1/+1
| | | | | | instead of removing it completely. svn path=/main/trunk/; revision=8891
* 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
* Fix the check for bug #198398 so that it works even when runningZac Medico2007-12-121-1/+2
| | | | | | repoman from the root of the repo. svn path=/main/trunk/; revision=8888
* Bug #198398 - Make repoman bail out if support for RMD160 hashZac Medico2007-12-121-0/+14
| | | | | | creation appears to be missing. svn path=/main/trunk/; revision=8887
* Instead of calling sys.exit when a ParseError occurs in the configZac Medico2007-12-114-63/+27
| | | | | | | | | 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
* First import the main portage module without legacy globals since itZac Medico2007-12-111-1/+10
| | | | | | | | | is almost certain to succeed in that case. This provides access to the portage.exception namespace which is needed for later exception handling, like if portage.exception.PermissionDenied is raised when constructing the legacy global config instance. svn path=/main/trunk/; revision=8882
* * When installing a binary package, export the file name of the packageZac Medico2007-12-112-2/+14
| | | | | | | | | | | | | | 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
* Add a "Quality Assurance" <part> tag so that all chapters areZac Medico2007-12-091-0/+3
| | | | | | consistently nested inside <part> tags. svn path=/main/trunk/; revision=8877
* Add some documentation for ebuild phases and pre/post phaseZac Medico2007-12-096-0/+79
| | | | | | hooks that can be defined via bashrc. svn path=/main/trunk/; revision=8876
* 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 #201513 - Fix typos for preserve-libs and PreservedLibraryConsumerSet.Zac Medico2007-12-071-2/+2
| | | | | | | Thanks to Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com> for this patch. svn path=/main/trunk/; revision=8861
* Declare retval as a local variable.Zac Medico2007-12-061-0/+1
| | | | svn path=/main/trunk/; revision=8859
* Prevent the filter_opts local variable from leaking into theZac Medico2007-12-061-1/+2
| | | | | | environment in preprocess_ebuild_env(). svn path=/main/trunk/; revision=8857
* Bug #201506 - Make preprocess_ebuild_env() preserveZac Medico2007-12-062-10/+17
| | | | | | | | SANDBOX_{DENY,PREDICT,READ,WRITE} between all phases, except when the environment comes directly from environment.bz2. svn path=/main/trunk/; revision=8853
* Remove redundant successful exit call from the "depend" phaseZac Medico2007-12-061-3/+0
| | | | | | | and let it run to the bottom of ebuild.sh just like the other phases. svn path=/main/trunk/; revision=8852
* Fix broken timestamp logic in do_snapshot(). Thanks to AlonZac Medico2007-12-061-6/+5
| | | | | | Bar-Lev <alonbl@gentoo.org> for this patch. svn path=/main/trunk/; revision=8851
* 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
* - repository configuration file and `emerge --sync [repo_set]... [repo]...`Zac Medico2007-12-051-0/+2
| | | | | | support for overlays and binhosts (zmedico) svn path=/main/trunk/; revision=8848
* 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