Lines 219-225
Link Here
|
219 |
def replace (self, newconf, curconf): |
219 |
def replace (self, newconf, curconf): |
220 |
"""Replace current config with the new/merged version. Also logs |
220 |
"""Replace current config with the new/merged version. Also logs |
221 |
the diff of what changed into the configured log file.""" |
221 |
the diff of what changed into the configured log file.""" |
222 |
os.system((DIFF_CONTENTS % (curconf, newconf)) + '>>' + self.config["log-file"]) |
222 |
os.system((DIFF_CONTENTS % (curconf, newconf)) + '>>' + self.options["log-file"]) |
223 |
try: |
223 |
try: |
224 |
shutil.move(newconf, curconf) |
224 |
shutil.move(newconf, curconf) |
225 |
except (IOError, os.error), why: |
225 |
except (IOError, os.error), why: |