diff options
author | Joshua Ismael Haase Hernández <hahj87@gmail.com> | 2011-04-11 12:39:40 -0500 |
---|---|---|
committer | Joshua Ismael Haase Hernández <hahj87@gmail.com> | 2011-04-11 12:39:40 -0500 |
commit | 3e27d11f68571bce92138f6cbfcaecac75fa1644 (patch) | |
tree | 36647c3691da83e85a0e06ceff3a4b47adf9f49b /pato2.py | |
parent | 857ecbe794c714919612b533303e7a9ef781c75b (diff) |
Fixed some errors
Diffstat (limited to 'pato2.py')
-rw-r--r-- | pato2.py | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -29,14 +29,6 @@ from repm.filter import * import tarfile from os.path import isdir, isfile -def printf(text,output=config["output"]): - """Guarda el texto en la variable log y puede imprimir en pantalla.""" - log_file = open(config["logname"], 'a') - log_file.write("\n" + str(text) + "\n") - log_file.close() - if output_: - print (str(text) + "\n") - def generate_rsync_command(base_command, dir_list=(config["repo_list"] + config["dir_list"]), @@ -68,4 +60,4 @@ def run_rsync(command,debug=config["debug"]): """ Runs rsync and gets returns it's output """ if debug: printf("rsync_command: " + command) - return check_output(command) + return check_output(command.split()) |