aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bachelier <laurent@bachelier.name>2020-01-22 23:46:00 +0100
committerLaurent Bachelier <laurent@bachelier.name>2020-01-22 23:46:00 +0100
commit992fe6fd96d795d67812fe2f26ef7db752535f27 (patch)
tree7d1f7840a0f96984b8329c2c0f1a17b91d47bc5a
parentRelease 0.3.0 (diff)
downloadconfman-992fe6fd96d795d67812fe2f26ef7db752535f27.tar.xz
Fix file comparison
-rw-r--r--confman.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/confman.py b/confman.py
index 6364cc7..6233e68 100644
--- a/confman.py
+++ b/confman.py
@@ -141,6 +141,7 @@ class TextAction(Action):
else:
self._makedirs()
with open(dest, 'a+') as destfile:
+ destfile.seek(0)
if destfile.read() != self.text:
if exists and self.ONCE:
print("File already exists, not updated: %s" % dest)