Skip to content

Commit 50d9382

Browse files
committed
fix support for multiple atoms
1 parent 447322f commit 50d9382

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

ebuildtester/main.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,15 @@ def main():
4242
"--autounmask-license=y ",
4343
"--autounmask-continue=y "]
4444

45-
atom = Atom(" ".join(map(str, options.OPTIONS.atom)))
45+
atoms = [Atom(str(a)) for a in options.OPTIONS.atom]
4646

4747
if options.OPTIONS.binhost:
48-
p = "{}/{}".format(atom.category, atom.package)
49-
emerge_command.append("--usepkg-exclude={}".format(p))
48+
for a in atoms:
49+
p = "{}/{}".format(a.category, a.package)
50+
emerge_command.append("--usepkg-exclude={}".format(p))
5051

51-
emerge_command.append(str(atom))
52+
for a in atoms:
53+
emerge_command.append(str(a))
5254
container.execute(" ".join(["echo"] + emerge_command + ["--ask"]) +
5355
" >> ~/.bash_history")
5456

0 commit comments

Comments
 (0)