summaryrefslogtreecommitdiffstats
path: root/bin/isolated-functions.sh
Commit message (Collapse)AuthorAgeFilesLines
...
* Add dummy dosed and dohard functions for EAPI 3, so that a trace can beZac Medico2009-04-241-1/+2
| | | | | | displayed (not possible with the helper binaries). svn path=/main/trunk/; revision=13390
* Move the ebuild sourcing code into a new _source_ebuild() function.Zac Medico2009-04-081-0/+1
| | | | svn path=/main/trunk/; revision=13299
* Bug #264494 - In case the ebuild has enabled set -e during an ebuild phase,Zac Medico2009-04-011-0/+1
| | | | | | proactively call set +e inside qa_source(), qa_call(), and die(). svn path=/main/trunk/; revision=13273
* Update copyright headers.Zac Medico2009-03-181-1/+1
| | | | svn path=/main/trunk/; revision=13131
* Filter _sb_append_var in save_ebuild_env().Zac Medico2009-03-121-1/+1
| | | | svn path=/main/trunk/; revision=13091
* Make save_ebuild_env() filter NOCOLOR, and remove related code from ebuild.shZac Medico2009-02-181-1/+1
| | | | | | since that variable is not loaded from $T/environment anymore. svn path=/main/trunk/; revision=12625
* Filter the new hasg and hasgq functions inside save_ebuild_env().Zac Medico2009-02-071-1/+2
| | | | svn path=/main/trunk/; revision=12592
* Make die() to show a message indicating the repository that an ebuild cameZac Medico2009-01-091-1/+13
| | | | | | | | from, and do it during any phase for both ebuilds and binary packages. Now PORTAGE_REPO_NAME is initialized inside config.setcpv() for both ebuilds and binary packages, so it's always available inside ebuild.sh. svn path=/main/trunk/; revision=12402
* Source bashrc files as late as possible, giving them the opportunity toZac Medico2008-12-021-1/+2
| | | | | | | override as much as possible. Thanks to Ned Ludd <solar@g.o> for the suggestion. svn path=/main/trunk/; revision=12134
* Don't direct to /dev/null when creating $EBUILD_EXIT_STATUS_FILE inside die.Zac Medico2008-11-261-2/+1
| | | | svn path=/main/trunk/; revision=12107
* When using the `read` builtin to split newlines in e* function arguments, useZac Medico2008-11-071-12/+12
| | | | | | | $REPLY in order to ensure that whitespace in each line is correctly preserved. Thanks to Joe Peterson <lavajoe@g.o> for reporting. svn path=/main/trunk/; revision=11820
* Filter PORTAGE_VERBOSE in save_ebuild_env().Zac Medico2008-11-011-1/+1
| | | | svn path=/main/trunk/; revision=11773
* Bug #236609 - Fix columns calculation for TERM="dumb". Thanks to Ulrich MüllerZac Medico2008-10-311-1/+1
| | | | | | <ulm@g.o> for the patch. svn path=/main/trunk/; revision=11764
* Add PORTAGE_QUIET to the environment whitelist and filter it from the saved ↵Zac Medico2008-10-211-0/+1
| | | | | | | | ebuild environment. svn path=/main/trunk/; revision=11708
* Now that elog_base() uses 'echo -e' to expand escape codes prior to usingZac Medico2008-09-301-5/+1
| | | | | | | | 'read' to split on newlines, it's safe to use newlines as delimiters in the log file since 'read' is guaranteed to split any newlines contained in the arguments. svn path=/main/trunk/; revision=11601
* Use echo -e when splitting lines in e* functions, for compatibility withZac Medico2008-09-251-6/+6
| | | | | | | previous behavior wrt \e escape codes such as `elog "\e[31m***\e[0m"` for example. Thanks to Arfrever for finding this solution. svn path=/main/trunk/; revision=11545
* Bug #238251 - Use 'read' instead of $IFS for splitting newlines in e*Zac Medico2008-09-211-67/+7
| | | | | | | functions, since using $IFS causes spurious newlines to be inserted in the message when the e* function is called with more than one argument. svn path=/main/trunk/; revision=11529
* Fix typo in from previous commit.Zac Medico2008-09-191-1/+1
| | | | svn path=/main/trunk/; revision=11516
* Remove everything related to the eapi* default phase functions since theyZac Medico2008-09-181-1/+1
| | | | | | are not included in the current EAPI 2 draft. svn path=/main/trunk/; revision=11515
* Add a new src_prepare phase function which is called in-between src_unpackZac Medico2008-08-231-4/+4
| | | | | | | and src_configure (and bump EAPI to 2_pre3). Thanks to Ciaran McCreesh for the suggestion. svn path=/main/trunk/; revision=11454
* Rename the eapi2_pre2_* functions to just eapi2_* and document all theZac Medico2008-08-081-1/+1
| | | | | | new eapi* functions. svn path=/main/trunk/; revision=11351
* Implement eapi$EAPI_* default phase functions that are equivalent to theZac Medico2008-08-081-1/+1
| | | | | | | | | default_* functions for the given EAPI. For example, a function named eapi0_src_compile provides access to the default src_compile implementation that EAPI 0 provides. This feature is supported only when EAPI=2_pre2 is set. Thanks to Brian Harring for suggesting this idea. svn path=/main/trunk/; revision=11350
* * Fix the default() implementation so that it maps the ebuild argument toZac Medico2008-08-081-0/+23
| | | | | | | | | | | the correct phase function. * Add --exclude-init-phases option to save_ebuild_env() for filtering out unnecessary functions and variables when creating environment.bz2. * Add support for default() and default_* functions that die in all ebuild phases so that improper use of these functions is quickly discovered. svn path=/main/trunk/; revision=11346
* Remove redundant 'local line' definition from previous commit.Zac Medico2008-08-061-1/+0
| | | | svn path=/main/trunk/; revision=11336
* Fix breakage in elog function newline handling with causes blank/emptyZac Medico2008-08-061-5/+43
| | | | | | lines to get lost. svn path=/main/trunk/; revision=11335
* Bug #233735 - Add support for src_configure and default_* functions withZac Medico2008-08-041-3/+6
| | | | | | | new EAPI=2_pre2. Thanks to Arfrever Frehtes Taifersar Arahesis for the initial patch which I've made a few adjustments to. svn path=/main/trunk/; revision=11327
* Even though the message is split on $'\n' in elog_base(), it's stillZac Medico2008-07-281-1/+5
| | | | | | | | not entirely safe to use it as a delimiter in the log file since there can still be escaped newlines that will be expanded due to the echo -e parameter. svn path=/main/trunk/; revision=11244
* Make elog_base() just use \n as the delimiter in the file since it's safeZac Medico2008-07-271-1/+1
| | | | | | now that lines are always split. svn path=/main/trunk/; revision=11220
* Make all the elog functions split lines when displaying output, just likeZac Medico2008-07-271-5/+35
| | | | | | elog_base() does when saving it. svn path=/main/trunk/; revision=11219
* Add support to elog_base() to split messages on newlines automatically.Zac Medico2008-07-271-2/+8
| | | | | | Thanks to Arfrever for the suggestion. svn path=/main/trunk/; revision=11218
* revert accidential commitMarius Mauch2008-06-201-10/+1
| | | | svn path=/main/trunk/; revision=10734
* update release notes/newsMarius Mauch2008-06-201-1/+10
| | | | svn path=/main/trunk/; revision=10733
* More eblank.Zac Medico2008-06-171-2/+0
| | | | svn path=/main/trunk/; revision=10704
* Remove eblank nonsenseMarius Mauch2008-06-171-10/+1
| | | | svn path=/main/trunk/; revision=10694
* * Rename NEUTRAL color to BLANK for eblank.Zac Medico2008-06-171-3/+3
| | | | | | | * Document the new BLANK code in color.map.5. * Implement python version of eblank for mod_echo. svn path=/main/trunk/; revision=10677
* Add support for an new "eblank" elog function that shows a blank line.Zac Medico2008-06-171-1/+17
| | | | | | | Consecutive eblank calls are all collapsed into a single blank line. Thanks to Joe Peterson <lavajoe@g.o> for this patch. svn path=/main/trunk/; revision=10675
* remove old/unused gen_wrapper functionMike Frysinger2008-06-071-1/+1
| | | | svn path=/main/trunk/; revision=10591
* Don't unset PORTAGE_BINPKG_FILE because it's readonly.Zac Medico2008-06-031-1/+0
| | | | svn path=/main/trunk/; revision=10546
* Filter PORTAGE_BINPKG_FILE in save_ebuild_env().Zac Medico2008-06-011-0/+1
| | | | svn path=/main/trunk/; revision=10541
* Bug #219286 - Whitelist INSTALL_MASK so that it works properly for binaryZac Medico2008-05-051-0/+3
| | | | | | | | packages. Also, filter INSTALL_MASK when saving or loading environment.bz2. This also applies to PKG_INSTALL_MASK and DOC_SYMLINKS_DIR, so add them too. svn path=/main/trunk/; revision=10195
* Handle issues with newlines in elog messages that can trigger an unhandledZac Medico2008-04-091-1/+1
| | | | | | | | | ValueError to be raised from a split() call inside collect_ebuild_messages(): * Use \0 to delimit messages, so that that elog messages containing newlines are handled correctly. * Handle a potential ValueError when splitting the message type. svn path=/main/trunk/; revision=9763
* Fix BASH_ARGC and BASH_ARGV offsets some more.Zac Medico2008-04-061-1/+1
| | | | svn path=/main/trunk/; revision=9734
* In dump_trace(), fix BASH_ARGV and BASH_ARGC offsets so that they are alwaysZac Medico2008-04-061-3/+9
| | | | | | correct wrt eachother. Thanks to Betelgeuse for reporting. svn path=/main/trunk/; revision=9733
* preserve order of ebuild messages even between different message types (bug ↵Marius Mauch2008-04-061-1/+1
| | | | | | #197905) svn path=/main/trunk/; revision=9726
* Bug #214619 - Add support for a PORTAGE_BINPKG_TAR_OPTS variable thatZac Medico2008-03-281-1/+1
| | | | | | | allows the user to specify tar command options for binary package creation. svn path=/main/trunk/; revision=9528
* Remove the killparent() function and associated SIGINT trap since thisZac Medico2008-02-101-1/+1
| | | | | | | should already be handled on the python side and it won't work with dropped privileges anyway. svn path=/main/trunk/; revision=9327
* Bug #155993 - Update environment.bz2 after postinst in caseZac Medico2008-02-071-1/+2
| | | | | | | installation phases need to pass some variables to uninstallation phases. svn path=/main/trunk/; revision=9281
* - Remove ebuild.autotools repoman check since it produces lotsZac Medico2008-01-301-1/+2
| | | | | | | | | of false positives (bug #207104) and its hard to parse bash - Use QA_INTERCEPTORS in ebuild.sh to implement a runtime 'QA Notice' when autotools is called directly svn path=/main/trunk/; revision=9235
* We need to implement diefunc() since environment.bz2 files containZac Medico2008-01-211-1/+7
| | | | | | calls to it (due to alias expansion). svn path=/main/trunk/; revision=9217
* Replace the current diefunc() and die alias with a single die() function.Zac Medico2008-01-201-6/+3
| | | | | | | | | The previous arguments to diefunc() weren't used anyway. The result is that the die message looks better because it doesn't show the alias and all of it's arguments which are totally irrelevant. (branches/prefix r9212) svn path=/main/trunk/; revision=9216