commit:     f8cb1ef31318d63f183c237f9a129efe77d91f98
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 20 03:50:24 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Sep 20 19:45:51 2022 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=f8cb1ef3

getbinpkg: fix command list with --getbinpkgonly

Observable with say, PORTAGE_BINHOST="rsync://../" set.

Bug: https://bugs.gentoo.org/866197
Fixes: 13740f43bcc38e787153d9efeabc4f5d878e7af0
Thanks-to: Sheng Yu <syu.os <AT> protonmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>
Closes: https://github.com/gentoo/portage/pull/904
Signed-off-by: Sam James <sam <AT> gentoo.org>

 lib/portage/getbinpkg.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/portage/getbinpkg.py b/lib/portage/getbinpkg.py
index ea9ee1d0a..799f5b171 100644
--- a/lib/portage/getbinpkg.py
+++ b/lib/portage/getbinpkg.py
@@ -529,7 +529,7 @@ def file_get(
     from portage.util import varexpand
     from portage.process import spawn
 
-    myfetch = (varexpand(x, mydict=variables) for x in 
portage.util.shlex_split(fcmd))
+    myfetch = [varexpand(x, mydict=variables) for x in 
portage.util.shlex_split(fcmd)]
     fd_pipes = {
         0: portage._get_stdin().fileno(),
         1: sys.__stdout__.fileno(),

Reply via email to