Note: Due to technical difficulties, the Archives are currently not up to date.
GMANE provides an alternative service for most mailing lists. c.f. bug 424647
List Archive: gentoo-commits
Author: zmedico
Date: 2008-04-11 21:58:31 +0000 (Fri, 11 Apr 2008)
New Revision: 9845
Modified:
main/branches/2.1.2/pym/getbinpkg.py
Log:
Make file_get() redirect FETCHCOMMAND output to stdout just like
portage.fetch() does. Thanks to Ramereth for reporting. (trunk r9844)
Modified: main/branches/2.1.2/pym/getbinpkg.py
===================================================================
--- main/branches/2.1.2/pym/getbinpkg.py 2008-04-11 21:58:06 UTC (rev 9844)
+++ main/branches/2.1.2/pym/getbinpkg.py 2008-04-11 21:58:31 UTC (rev 9845)
@@ -398,7 +398,12 @@
lexer = shlex.shlex(StringIO.StringIO(fcmd), posix=True)
lexer.whitespace_split = True
myfetch = [varexpand(x, mydict=variables) for x in lexer]
- retval = spawn(myfetch, env=os.environ.copy())
+ fd_pipes= {
+ 0:sys.stdin.fileno(),
+ 1:sys.stdout.fileno(),
+ 2:sys.stdout.fileno()
+ }
+ retval = spawn(myfetch, env=os.environ.copy(), fd_pipes=fd_pipes)
if retval != os.EX_OK:
sys.stderr.write("Fetcher exited with a failure condition.\n")
return 0
--
gentoo-commits@g.o mailing list
|
|