Line
Link Here
|
0 |
-- gensync |
0 |
++ gensync |
Lines 34-43
Link Here
|
34 |
ins = open("/etc/gensync/gensync.conf") |
34 |
ins = open("/etc/gensync/gensync.conf") |
35 |
for x in ins.readlines(): |
35 |
for x in ins.readlines(): |
36 |
# Skip line if it's a comment or not well-formed |
36 |
# Skip line if it's a comment or not well-formed |
37 |
if x.find("=") == -1 or \ |
37 |
if x.find(" = ") == -1 or \ |
38 |
(len(x) and x[0] == "#"): |
38 |
(len(x) and x[0] == "#") or \ |
|
|
39 |
len(x.split()) != 3: |
39 |
continue |
40 |
continue |
40 |
(attrib, value) = x.split() |
41 |
(attrib, null, value) = x.split() |
41 |
value = value.strip().strip('"') |
42 |
value = value.strip().strip('"') |
42 |
if attrib == "rsync_timeout": |
43 |
if attrib == "rsync_timeout": |
43 |
self.rsync_timeout = value |
44 |
self.rsync_timeout = value |