Fix broken spawn_bash() call.
authorZac Medico <zmedico@gentoo.org>
Sun, 24 Oct 2010 19:03:34 +0000 (12:03 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 27 Oct 2010 14:37:30 +0000 (07:37 -0700)
pym/_emerge/actions.py

index 0908c2ca2eb8e28d875fa0ec898cb0aa55484d97..c7512020864c27d18215125159e10527d93b694e 100644 (file)
@@ -2386,9 +2386,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)