summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-02-14 01:38:59 -0600
committerJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-02-14 01:38:59 -0600
commit7f40b89e8cd0e9b2cfd92a8b74c4063d8b9aa3e3 (patch)
tree1165c8374b7d3c8c0732bd01a6a2f6d8988efe4a
parent931daf34033714e64fb4f98a101dd804e4e6363e (diff)
Corrected funcions
-rw-r--r--pato2.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pato2.py b/pato2.py
index 97eec9d..55e63e7 100644
--- a/pato2.py
+++ b/pato2.py
@@ -195,13 +195,13 @@ def generate_rsync_command(base_command, dir_list, destdir=repodir,
if blacklist_file:
return " ".join((base_command, "--exclude-from-file="+blacklist_file,
- mirror_name + mirror_path + dir_list, destdir))
- return " ".join((base_command, mirror_name + mirror_path + dir_list, destdir))
+ source + dir_list, destdir))
+ return " ".join((base_command, source + dir_list, destdir))
def run_rsync(base_for_rsync, dir_list_for_rsync=(repo_list + dir_list),
debug=verbose):
""" Runs rsync and gets returns it's output """
- cmd = str(generate_rsync_command(rsync_list_command, (repo_list + dir_list)))
+ cmd = str(generate_rsync_command(base_for_rsync, (repo_list + dir_list)))
if debug:
printf("rsync_command" + cmd)
return commands.getoutput(cmd)