View previous topic :: View next topic |
Author |
Message |
toralf Developer
Joined: 01 Feb 2004 Posts: 3922 Location: Hamburg
|
Posted: Sat May 04, 2013 8:10 am Post subject: [solved] /etc/portage/bashrc: epatch_user: command not found |
|
|
This is my bashrc: Code: | $ cat /etc/portage/bashrc
post_src_prepare() {
:
epatch_user
}
| How can I conditionally prevent epatch_user from being called based on an EAPI version ?
Last edited by toralf on Sat May 04, 2013 8:42 am; edited 1 time in total |
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Sat May 04, 2013 8:26 am Post subject: |
|
|
Unfortunately, it does not depend on the EAPI whether epatch_user is available but whether eutils is inherited (directly or indirectly). You can test whether epatch_user is available:
Code: | post_src_prepare() {
case `type -t epatch_user` in
function) epatch_user;;
esac
} |
|
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3922 Location: Hamburg
|
Posted: Sat May 04, 2013 8:42 am Post subject: |
|
|
mv wrote: | Unfortunately, it does not depend on the EAPI whether epatch_user is available but whether eutils is inherited (directly or indirectly). | ah thx |
|
Back to top |
|
|
|