install-ebuild-deps: use split

This commit is contained in:
Maciej Barć 2020-09-27 19:51:27 +02:00
parent 6d24e50a38
commit 966581d5a7
No known key found for this signature in database
GPG Key ID: 031C9FE65BED714A
1 changed files with 3 additions and 4 deletions

View File

@ -38,10 +38,9 @@ def pkg_name(pkg_str):
proper = ""
# Strip required use
for i in pkg_str:
if i in ["["]:
break
proper += i
for i in ["["]:
if i in pkg_str:
proper = pkg_str.split(i)[0]
# Strip conditional use
for i in ["$", "DEPEND", "||", "!", "?", "(", ")"]: