save old configuration files with the suffix ".oldconfig"

This commit is contained in:
Barış Metin
2005-11-22 19:23:20 +00:00
parent 953cc2ad09
commit ce9fd3073e
+1 -1
View File
@@ -342,7 +342,7 @@ class Remove(AtomicOperation):
# we'll have a plan for these configuration files.
if fileinfo.type == ctx.const.conf:
if os.path.isfile(fpath):
os.rename(fpath, fpath + ".pisi")
os.rename(fpath, fpath + ".oldconfig")
else:
# check if file is removed manually.
# And we don't remove directories!