From 8f7c3ee56606ee1906e9462381fb7d5586be8744 Mon Sep 17 00:00:00 2001 From: Marcus Stoegbauer Date: Sun, 13 Jan 2013 21:37:28 +0000 Subject: [PATCH] Output actions --- userconfig.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/userconfig.py b/userconfig.py index d11d60e..dcf5f47 100755 --- a/userconfig.py +++ b/userconfig.py @@ -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