summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Instead of all modes, only in commit mode save an extra copy of QAZac Medico2007-12-151-1/+3
| | | | | | output for display in $EDITOR. (trunk r8928) svn path=/main/branches/2.1.2/; revision=8929
* 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. (trunk r8925) svn path=/main/branches/2.1.2/; revision=8926
* 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. (trunk r8923) svn path=/main/branches/2.1.2/; revision=8924
* * Add support for multi-line commit message input by using EOFZac Medico2007-12-141-7/+84
| | | | | | | | | | | as a delimiter (Ctrl-d) instead of a new line. * Add support for getting a commit message using an editor defined by the EDITOR environment variable. (trunk r8919:8921) svn path=/main/branches/2.1.2/; revision=8922
* Fix the bug #198398 code from trunk to be compatible with the codeZac Medico2007-12-131-2/+2
| | | | | | in this branch. svn path=/main/branches/2.1.2/; revision=8919
* Add --buildpkgonly to the options lists that exempt fromZac Medico2007-12-131-2/+3
| | | | | | slot collisions and world file updates. (trunk r8917) svn path=/main/branches/2.1.2/; revision=8918
* 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. (trunk r8915) svn path=/main/branches/2.1.2/; revision=8916
* 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). (trunk r8913) svn path=/main/branches/2.1.2/; revision=8914
* Make sure that PORTAGE_SANDBOX_* variables can never be setZac Medico2007-12-131-1/+1
| | | | | | by "${T}"/environment. (trunk r8911) svn path=/main/branches/2.1.2/; revision=8912
* 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. (trunk r8909) svn path=/main/branches/2.1.2/; revision=8910
* 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. (trunk r8905:8907) svn path=/main/branches/2.1.2/; revision=8908
* Use the BAD color class instead of hardcoded red. (trunk r8904)Zac Medico2007-12-132-2/+2
| | | | svn path=/main/branches/2.1.2/; revision=8905
* 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. (trunk r8896) svn path=/main/branches/2.1.2/; revision=8903
* 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-132-9/+18
| | | | svn path=/main/branches/2.1.2/; revision=8900
* * In filter_readonly_variables(), replace 'declare -r ' with 'declare 'Zac Medico2007-12-132-3/+55
| | | | | | | | | | | | | | | | instead of removing it completely. * Bug #202068 - In order to filter unwanted variable assignments out 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. * Use the sed -r option to enable extended regular expressions so that commonly used characters like (, ), and + don't have to be escaped. (trunk r8890:8893) svn path=/main/branches/2.1.2/; revision=8899
* Bug #198398 - Make repoman bail out if support for RMD160 hashZac Medico2007-12-131-0/+18
| | | | | | creation appears to be missing. (trunk r8886:8888 and r8897) svn path=/main/branches/2.1.2/; revision=8898
* Bug #202036 - In case of blockers, bail out earlier so that laterZac Medico2007-12-131-19/+20
| | | | | | code can assume there are no blockers. (trunk r8889) svn path=/main/branches/2.1.2/; revision=8890
* Instead of calling sys.exit when a ParseError occurs in the configZac Medico2007-12-113-59/+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. (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-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. (trunk r8878) svn path=/main/branches/2.1.2/; revision=8881
* Add a "Quality Assurance" <part> tag so that all chapters areZac Medico2007-12-111-0/+3
| | | | | | consistently nested inside <part> tags. (trunk r8877) svn path=/main/branches/2.1.2/; revision=8880
* Add some documentation for ebuild phases and pre/post phaseZac Medico2007-12-116-0/+84
| | | | | | hooks that can be defined via bashrc. (trunk r8876) svn path=/main/branches/2.1.2/; revision=8879
* 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
* Quote $PORTDIR. Thanks to Chris Kerr in bug #52208.Zac Medico2007-12-081-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=8873
* 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
* Declare retval as a local variable. (trunk r8859)Zac Medico2007-12-061-0/+1
| | | | svn path=/main/branches/2.1.2/; revision=8860
* Prevent the filter_opts local variable from leaking into theZac Medico2007-12-061-1/+2
| | | | | | environment in preprocess_ebuild_env(). (trunk r8857) svn path=/main/branches/2.1.2/; revision=8858
* 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. (trunk r8852) svn path=/main/branches/2.1.2/; revision=8856
* To avoid false positives during the transitionZac Medico2007-12-061-1/+7
| | | | | | | | period, don't show ? if the installed package is missing a repository label. Stages starting with 2007.1 will come with repository lables. svn path=/main/branches/2.1.2/; revision=8855
* 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. (trunk r8853) svn path=/main/branches/2.1.2/; revision=8854
* 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. (trunk r8846) svn path=/main/branches/2.1.2/; revision=8847
* 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
* Synchronize the conditional that triggers "${T}"/environmentZac Medico2007-12-031-4/+3
| | | | | | | generation with the conditional that triggers distcc and ccache FEATURES setup. (trunk r8833) svn path=/main/branches/2.1.2/; revision=8834
* * 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-032-1/+7
| | | | | | | * unset CCACHE_* and DISTCC_* variables in save_ebuild_env() (trunk r8818) svn path=/main/branches/2.1.2/; revision=8819
* For compatibility with cvs.eclass, do not unset CVS_RSH inZac Medico2007-12-021-1/+1
| | | | | | | save_ebuild_env() since that variable may be initialized in global scope. (trunk r8816) svn path=/main/branches/2.1.2/; revision=8817
* Fix useq() so that it won't generate a bogus IUSE QA NoticeZac Medico2007-12-021-0/+2
| | | | | | | if called during the "depend" phase with a flag that uses IUSE defaults. (trunk r8805) svn path=/main/branches/2.1.2/; revision=8806
* 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. (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
* Fix portage_exec namespace.Zac Medico2007-12-021-2/+1
| | | | svn path=/main/branches/2.1.2/; revision=8800
* 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-012-4/+13
| | | | | | | | | * 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
* Show the pid in the "starting parallel fetching" message. (trunk r8794)Zac Medico2007-12-011-1/+2
| | | | svn path=/main/branches/2.1.2/; revision=8795
* After each merge, collect status from child processesZac Medico2007-12-011-2/+34
| | | | | | | in order to clean up zombies (such as the parallel-fetch process). (trunk r8790:8792) svn path=/main/branches/2.1.2/; revision=8793
* 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