# Distributed under the GPL v2
# $Id$
+ 22 Jan 2010; Andrew Gaffney <agaffney@gentoo.org>
+ modules/catalyst/util.py:
+ Actually pay attention to the 'delete' parameter for Gentoo bug #301769
+
20 Jan 2010; Andrew Gaffney <agaffney@gentoo.org>
modules/catalyst/util.py:
Missing space in catalyst.util.list_bashify()
raise CatalystError("Could not create symlink '%s' to '%s'" % (dest, src))
def rsync(src, dest, delete=False, extra_opts=""):
- retval = catalyst.spawn.spawn_bash("rsync -a --delete %s %s %s" % (extra_opts, src, dest))
+ delete_opts = ""
+ if delete:
+ delete_opts = "--delete"
+ retval = catalyst.spawn.spawn_bash("rsync -a %s %s %s %s" % (delete_opts, extra_opts, src, dest))
if retval != 0:
raise CatalystError("Could not rsync '%s' to '%s'" % (src, dest))