output commentstring as well

This commit is contained in:
Marcus Stoegbauer 2024-03-30 00:56:58 +01:00
parent e82fd99a16
commit 2c06ecca77
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ def read_skip_comment(fp, commentstring):
def diff(destfile, tempfile, commentstring, cfg): def diff(destfile, tempfile, commentstring, cfg):
"""diff destfile and tempfile, returns True if files differ, False if they are the same""" """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): if not os.path.isfile(destfile):
cfg.debug.stdout("Destfile %s does not exist, returning True." % destfile, 3) cfg.debug.stdout("Destfile %s does not exist, returning True." % destfile, 3)
# destfile does not exist -> copy tempfile over # destfile does not exist -> copy tempfile over