summaryrefslogtreecommitdiff
path: root/pato2.py
diff options
context:
space:
mode:
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())