Output actions

This commit is contained in:
Marcus Stoegbauer 2013-01-13 21:37:28 +00:00
parent ddb521d9cc
commit 8f7c3ee566

View File

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