diff options
author | Ulrich Müller <ulm@gentoo.org> | 2022-05-26 17:02:46 +0200 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2022-07-18 18:04:07 +0200 |
commit | 5c9d2e57efce35f62b3bd00dbc016e0b98b318b1 (patch) | |
tree | 98fd686191baf234edfcf177fb78a11b3870f133 /eclass/eutils.eclass | |
parent | eutils.eclass: Drop support for EAPI 5 (diff) | |
download | gentoo-5c9d2e57efce35f62b3bd00dbc016e0b98b318b1.tar.gz gentoo-5c9d2e57efce35f62b3bd00dbc016e0b98b318b1.tar.bz2 gentoo-5c9d2e57efce35f62b3bd00dbc016e0b98b318b1.zip |
eutils.eclass: Remove use_if_iuse
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'eclass/eutils.eclass')
-rw-r--r-- | eclass/eutils.eclass | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass index 0b84e3c82c00..e2b3ce0482a9 100644 --- a/eclass/eutils.eclass +++ b/eclass/eutils.eclass @@ -74,18 +74,11 @@ path_exists() { die "path_exists is banned" } -# @FUNCTION: use_if_iuse -# @USAGE: <flag> -# @DESCRIPTION: -# Return true if the given flag is in USE and IUSE. -# -# Note that this function should not be used in the global scope. use_if_iuse() { - eqawarn "use_if_iuse is deprecated." - eqawarn "Define it as a local function, or inline it:" - eqawarn " in_iuse foo && use foo" - in_iuse $1 || return 1 - use $1 + eerror "use_if_iuse has been removed." + eerror "Define it as a local function, or inline it:" + eerror " in_iuse foo && use foo" + die "use_if_iuse is banned" } # @FUNCTION: eqawarn |