summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-10-24 12:03:34 -0700
committerZac Medico <zmedico@gentoo.org>2010-10-24 12:03:34 -0700
commit6f7118cd7c20f451e13aa881f81cc248ac8df59b (patch)
tree9777e6a3140697432df52ea89981eec65b7a3323
parent454cf9541bec94006c063f5ff4115a5bf5b416bb (diff)
downloadportage-6f7118cd7c20f451e13aa881f81cc248ac8df59b.tar.gz
portage-6f7118cd7c20f451e13aa881f81cc248ac8df59b.tar.bz2
portage-6f7118cd7c20f451e13aa881f81cc248ac8df59b.zip
Fix broken spawn_bash() call.
-rw-r--r--pym/_emerge/actions.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py
index 0ab3bda6a..955aa0f0e 100644
--- a/pym/_emerge/actions.py
+++ b/pym/_emerge/actions.py
@@ -2396,9 +2396,10 @@ def action_sync(settings, trees, mtimedb, myopts, myaction):
"!!! existing '%s' directory; exiting.\n" % myportdir)
sys.exit(1)
del e
- if portage.spawn_bash("cd %s; exec cvs -z0 -d %s co -P gentoo-x86" % \
+ if portage.process.spawn_bash(
+ "cd %s; exec cvs -z0 -d %s co -P gentoo-x86" % \
(portage._shell_quote(cvsdir), portage._shell_quote(cvsroot)),
- settings, free=1):
+ **spawn_kwargs) != os.EX_OK:
print("!!! cvs checkout error; exiting.")
sys.exit(1)
os.rename(os.path.join(cvsdir, "gentoo-x86"), myportdir)