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