Output actions
This commit is contained in:
parent
ddb521d9cc
commit
8f7c3ee566
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user