summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-02-23 00:56:06 +0000
committerZac Medico <zmedico@gentoo.org>2007-02-23 00:56:06 +0000
commit659f4460836120c4de64dea380fda59908c07329 (patch)
tree63d9b7b970183630ec5fb7885f1b76639247343e /pym
parente3f64e64361bfdf62f5548c66542e1f51ad8c919 (diff)
downloadportage-659f4460836120c4de64dea380fda59908c07329.tar.gz
portage-659f4460836120c4de64dea380fda59908c07329.tar.bz2
portage-659f4460836120c4de64dea380fda59908c07329.zip
spawn rsync without a shell.
svn path=/main/trunk/; revision=6051
Diffstat (limited to 'pym')
-rw-r--r--pym/emerge/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py
index 91b265669..f96db811e 100644
--- a/pym/emerge/__init__.py
+++ b/pym/emerge/__init__.py
@@ -4030,7 +4030,9 @@ def action_sync(settings, trees, mtimedb, myopts, myaction):
elif (servertimestamp == 0) or (servertimestamp > mytimestamp):
# actual sync
mycommand=rsynccommand+" "+dosyncuri+"/ "+myportdir
- exitcode=portage.spawn(mycommand,settings,free=1)
+ mycommand = mycommand.split()
+ exitcode = portage.process.spawn(mycommand,
+ env=settings.environ())
if exitcode in [0,1,2,3,4,11,14,20,21]:
break
elif exitcode in [0,1,2,3,4,11,14,20,21]: