Output actions

This commit is contained in:
Marcus Stoegbauer 2013-01-13 21:37:28 +00:00
parent ddb521d9cc
commit 8f7c3ee566
1 changed files with 3 additions and 1 deletions

View File

@ -178,13 +178,15 @@ def processAllFiles(destfiles, dirConfig):
# diff assembled file and config file
if Tools.diff(df, tempfilename, commentstring, debug):
debug.debug("%s changed." % df)
print df,"changed",
if not Tools.userConfigGenerated(df, cfg):
print "(trying to back up file)",
debug.debug("%s not generated by userconfig, backing up." % df)
# file not generated from userconfig -> back up
Tools.backupFile(df, debug)
# if not userConfigGenerated
# copy tmp file to real location
print "copying new version."
Tools.copyFile(tempfilename, df, debug)
# if diff
# remove tmp