Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-devhelp
Navigation:
Lists: gentoo-devhelp: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-devhelp@g.o
From: Mike Frysinger <vapier@g.o>
Subject: Re: Calling the default implementation of a function
Date: Sat, 31 Oct 2009 17:37:31 -0400
On Saturday 31 October 2009 11:47:54 Nikos Chantziaras wrote:
> Is there a way to call the default implementation of a function inside
> the ebuild-specified one?
> 
> What I mean is:
> 
> src_prepare() {
> 	if [ "$PV" == "9999" ]; then
> 		./autogen.sh
> 	else
> 		src_prepare() # Default from eclass.
> 	fi
> }
> 
> Possible?

better to wrap the func definition:
if [[ ${PV} == "9999" ]] ; then
src_prepare() { eautoreconf; }
fi
-mike
Attachment:
signature.asc (This is a digitally signed message part.)
Replies:
Re: Calling the default implementation of a function
-- Nikos Chantziaras
References:
Calling the default implementation of a function
-- Nikos Chantziaras
Navigation:
Lists: gentoo-devhelp: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Re: Calling the default implementation of a function
Next by thread:
Re: Calling the default implementation of a function
Previous by date:
Re: Re: Calling the default implementation of a function
Next by date:
Re: Calling the default implementation of a function


Updated Jun 03, 2012

Summary: Archive of the gentoo-devhelp mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.