summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-02-23 00:57:24 +0000
committerZac Medico <zmedico@gentoo.org>2007-02-23 00:57:24 +0000
commit650182115ab4eda424e94b05b20cbc082c128b3d (patch)
tree631b7ede36e928fa7c7eab022fe42e26ad89cc63 /bin
parent7b5aeab56907970403b8c7572d2b7ace26aa133f (diff)
downloadportage-650182115ab4eda424e94b05b20cbc082c128b3d.tar.gz
portage-650182115ab4eda424e94b05b20cbc082c128b3d.tar.bz2
portage-650182115ab4eda424e94b05b20cbc082c128b3d.zip
spawn rsync without a shell. (trunk r6050:6051)
svn path=/main/branches/2.1.2/; revision=6052
Diffstat (limited to 'bin')
-rwxr-xr-xbin/emerge4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/emerge b/bin/emerge
index 8d9b7ccb0..33d6fc354 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -3970,7 +3970,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.portage_exec.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]: