SHOW:
|
|
- or go back to the newest paste.
1 | bashrc_call_epatch_user() { | |
2 | - | cd "${S}" |
2 | + | [ -d ${S} ] && cd "${S}" |
3 | if type epatch_user > /dev/null 2>&1 \ | |
4 | && type epatch > /dev/null 2>&1; then | |
5 | epatch_user | |
6 | else | |
7 | . ${ROOT}etc/portage/env/epatch.sh | |
8 | epatch_user | |
9 | # To avoid issues when writing an ebuild | |
10 | unset epatch | |
11 | unset epatch_user | |
12 | fi | |
13 | } | |
14 | ||
15 | post_src_unpack() { | |
16 | [ -z "$LATE_EPATCH_USER" ] && bashrc_call_epatch_user | |
17 | } | |
18 | ||
19 | post_src_prepare() { | |
20 | [ -n "$LATE_EPATCH_USER" ] && bashrc_call_epatch_user | |
21 | } |