diff options
author | Michał Górny <mgorny@gentoo.org> | 2014-08-18 12:04:46 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2014-12-04 15:01:35 +0100 |
commit | 65c1b97870b6689d5b065540d0e46fa7cb4de7bc (patch) | |
tree | 027cad897259802fd8853e05df2c7bcc0adb60a8 /bin/eapi.sh | |
parent | Add tentative EAPI6 nonfatal support to die() (diff) | |
download | portage-65c1b97870b6689d5b065540d0e46fa7cb4de7bc.tar.gz portage-65c1b97870b6689d5b065540d0e46fa7cb4de7bc.tar.bz2 portage-65c1b97870b6689d5b065540d0e46fa7cb4de7bc.zip |
Add tentative EAPI6 in_iuse() function
Add a function to query IUSE_EFFECTIVE for flags.
Diffstat (limited to 'bin/eapi.sh')
-rw-r--r-- | bin/eapi.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/eapi.sh b/bin/eapi.sh index c650a4c79..e0ade02fa 100644 --- a/bin/eapi.sh +++ b/bin/eapi.sh @@ -80,6 +80,10 @@ ___eapi_has_eapply_user() { [[ ! ${1-${EAPI}} =~ ^(0|1|2|3|4|4-python|4-slot-abi|5|5-hdepend|5-progress)$ ]] } +___eapi_has_in_iuse() { + [[ ! ${1-${EAPI}} =~ ^(0|1|2|3|4|4-python|4-slot-abi|5|5-hdepend|5-progress)$ ]] +} + ___eapi_has_master_repositories() { [[ ${1-${EAPI}} =~ ^(5-progress)$ ]] } |