Use shutil.copy2 to preserve file dates
This commit is contained in:
@ -312,7 +312,7 @@ class InstConfigData(object):
|
||||
self.config_filename + "." + str(idx + 1))
|
||||
|
||||
if os.path.exists(self.config_filename):
|
||||
shutil.copy(self.config_filename, self.config_filename + ".1")
|
||||
shutil.copy2(self.config_filename, self.config_filename + ".1")
|
||||
|
||||
def write_config_file(self):
|
||||
""" Write out InstConfigData values to the configuration file."""
|
||||
|
Reference in New Issue
Block a user