use constant.
This commit is contained in:
@@ -392,7 +392,7 @@ class Remove(AtomicOperation):
|
|||||||
# do not remove precious files :)
|
# do not remove precious files :)
|
||||||
# just write anything permanent="true" for instance
|
# just write anything permanent="true" for instance
|
||||||
return
|
return
|
||||||
if fileinfo.type == "config":
|
if fileinfo.type == ctx.const.conf:
|
||||||
if os.path.isfile(fpath):
|
if os.path.isfile(fpath):
|
||||||
os.rename(fpath, fpath + ".oldconfig")
|
os.rename(fpath, fpath + ".oldconfig")
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user