Compare commits
2 Commits
e82fd99a16
...
b5c898035a
Author | SHA1 | Date | |
---|---|---|---|
b5c898035a | |||
2c06ecca77 |
@ -71,8 +71,8 @@ class Userconfig:
|
||||
return False
|
||||
# assemble file to tmp
|
||||
commentstring = ""
|
||||
if dir_config.check("Main", "commentstring"):
|
||||
commentstring = dir_config.get("Main", "commentstring")
|
||||
if dir_config.check(section="Main", option="commentstring"):
|
||||
commentstring = dir_config.get(section="Main", option="commentstring")
|
||||
self._cfg.debug.stdout(" +++ Found commentstring %s in %s" % (commentstring, df), 3)
|
||||
|
||||
tempfilename = self.build_file(destfiles[df], df, commentstring)
|
||||
|
@ -59,7 +59,7 @@ def read_skip_comment(fp, commentstring):
|
||||
|
||||
def diff(destfile, tempfile, commentstring, cfg):
|
||||
"""diff destfile and tempfile, returns True if files differ, False if they are the same"""
|
||||
cfg.debug.stdout("Diffing %s and %s" % (destfile, tempfile), 3)
|
||||
cfg.debug.stdout("Diffing %s and %s, comment: %s" % (destfile, tempfile, commentstring), 3)
|
||||
if not os.path.isfile(destfile):
|
||||
cfg.debug.stdout("Destfile %s does not exist, returning True." % destfile, 3)
|
||||
# destfile does not exist -> copy tempfile over
|
||||
|
Loading…
Reference in New Issue
Block a user