diff options
| author | John Turner <jturner.usa@gmail.com> | 2025-09-29 00:38:49 -0400 |
|---|---|---|
| committer | John Turner <jturner.usa@gmail.com> | 2025-09-29 00:38:49 -0400 |
| commit | 5b260664b73b2a7c7cb713f80666b26ff944c230 (patch) | |
| tree | a872c3f2085136f625d3c67e236d4adc2e2a3c51 | |
| parent | c0995c537473738ff3227fbb07bbd94e688da55d (diff) | |
| download | gentoolkit-5b260664b73b2a7c7cb713f80666b26ff944c230.tar.gz | |
impl get_final_flags function in flag.py
| -rw-r--r-- | pym/gentoolkit/flag.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pym/gentoolkit/flag.py b/pym/gentoolkit/flag.py index f2bed6f..2520447 100644 --- a/pym/gentoolkit/flag.py +++ b/pym/gentoolkit/flag.py @@ -21,6 +21,8 @@ __all__ = ( import portage +from gentoolkit.cpv import CPV +from typing import List def get_iuse(cpv): @@ -201,3 +203,7 @@ def get_flags(cpv, final_setting=False, include_forced_masked=False): ) return iuse_flags, final_flags return iuse_flags + + +def get_final_flags(cpv: CPV) -> List[str]: + return get_flags(cpv, final_setting=True)[1] |
