summaryrefslogtreecommitdiff
path: root/pato2.py
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-04-11 12:39:40 -0500
committerJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-04-11 12:39:40 -0500
commit3e27d11f68571bce92138f6cbfcaecac75fa1644 (patch)
tree36647c3691da83e85a0e06ceff3a4b47adf9f49b /pato2.py
parent857ecbe794c714919612b533303e7a9ef781c75b (diff)
Fixed some errors
Diffstat (limited to 'pato2.py')
-rw-r--r--pato2.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/pato2.py b/pato2.py
index 4cdb536..6daa8b8 100644
--- a/pato2.py
+++ b/pato2.py
@@ -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())