"!!! 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)