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-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Ulrich Mueller <ulm@g.o>
Subject: Re: [RFC] check-reqs.eclass.patch
Date: Tue, 30 Aug 2011 10:22:23 +0200
>>>>> On Tue, 30 Aug 2011, Tomáš Chvátal wrote:

> CHECKREQS_EXPORTED_FUNCTIONS="pkg_setup"
> case "${EAPI:-0}" in
> 	0|1|2|3) ;;
> 	4) CHECKREQS_EXPORTED_FUNCTIONS="${CHECKREQS_EXPORTED_FUNCTIONS} pkg_pretend" ;;
> 	*) die "EAPI=${EAPI} is not supported" ;;
> esac

> EXPORT_FUNCTIONS ${CHECKREQS_EXPORTED_FUNCTIONS}
> unset CHECKREQS_EXPORTED_FUNCTIONS

No need for a global variable here, the following works as well and is
easier to read:

EXPORT_FUNCTIONS pkg_setup
case "${EAPI:-0}" in
	0|1|2|3) ;;
	4) EXPORT_FUNCTIONS pkg_pretend ;;
	*) die "EAPI=${EAPI} is not supported" ;;
esac

Ulrich


Replies:
Re: [RFC] check-reqs.eclass.patch
-- Tomáš Chvátal
References:
[RFC] check-reqs.eclass.patch
-- Tomáš Chvátal
Re: [RFC] check-reqs.eclass.patch
-- Michał Górny
Re: [RFC] check-reqs.eclass.patch
-- Tomáš Chvátal
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: [RFC] check-reqs.eclass.patch
Next by thread:
Re: [RFC] check-reqs.eclass.patch
Previous by date:
Re: [RFC] office-ext.eclass
Next by date:
Re: [RFC] check-reqs.eclass.patch


Updated Jun 29, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

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