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

View File

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