From c16305a02f5d023199e9ba6614a6ad1363e201e8 Mon Sep 17 00:00:00 2001 From: Sam James Date: Tue, 20 Sep 2022 04:50:24 +0100 Subject: [PATCH] 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 Signed-off-by: Sam James --- 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(), -- 2.37.3