Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] /etc/portage/bashrc: epatch_user: command not found
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3922
Location: Hamburg

PostPosted: Sat May 04, 2013 8:10 am    Post subject: [solved] /etc/portage/bashrc: epatch_user: command not found Reply with quote

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
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Sat May 04, 2013 8:26 am    Post subject: Reply with quote

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
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3922
Location: Hamburg

PostPosted: Sat May 04, 2013 8:42 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum