diff options
author | Parabola <parabolavnx@lions.dreamhost.com> | 2011-02-14 22:41:29 -0800 |
---|---|---|
committer | Parabola <parabolavnx@lions.dreamhost.com> | 2011-02-14 22:41:29 -0800 |
commit | fb247388925beabe01162f28bfcba7fcf8809254 (patch) | |
tree | e776f11ab0f9d407da5a2cd9f0ae3cd0b5cd1262 /pato2.py | |
parent | 8975a9021c8b04fb81d9b9358a55b89ecdb373b7 (diff) |
* Fixed for rsync to run
Diffstat (limited to 'pato2.py')
-rw-r--r-- | pato2.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -196,15 +196,15 @@ def generate_rsync_command(base_command, dir_list=(repo_list + dir_list), destdi dir_list="{" + ",".join(dir_list) + "}" if blacklist_file: - return " ".join((base_command, "--exclude-from-file="+blacklist_file, + return " ".join((base_command, "--exclude-from="+blacklist_file, os.path.join(source, dir_list), destdir)) return " ".join((base_command, os.path.join(source, dir_list), destdir)) def run_rsync(command,debug=verbose): """ Runs rsync and gets returns it's output """ if debug: - printf("rsync_command: " + cmd) - return commands.getoutput(cmd) + printf("rsync_command: " + command) + return commands.getoutput(command) if __name__ == "__main__": from time import time |