install-ebuild-deps: use split
This commit is contained in:
parent
6d24e50a38
commit
966581d5a7
@ -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", "||", "!", "?", "(", ")"]:
|
||||||
|
Loading…
Reference in New Issue
Block a user