summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParabola <parabolavnx@lions.dreamhost.com>2011-02-14 22:41:29 -0800
committerParabola <parabolavnx@lions.dreamhost.com>2011-02-14 22:41:29 -0800
commitfb247388925beabe01162f28bfcba7fcf8809254 (patch)
treee776f11ab0f9d407da5a2cd9f0ae3cd0b5cd1262
parent8975a9021c8b04fb81d9b9358a55b89ecdb373b7 (diff)
* Fixed for rsync to run
-rw-r--r--pato2.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pato2.py b/pato2.py
index 9b902f4..c598c2f 100644
--- a/pato2.py
+++ b/pato2.py
@@ -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