fixed the way preference file restoration works in the case that there is no preferences file to start with
original commit: 155cc4ac052c139049cb3031e648d2ebe89586c7
This commit is contained in:
parent
edff96857f
commit
bed184b62f
|
@ -91,15 +91,13 @@
|
|||
(reset-section-jump!)))))
|
||||
files-to-process)
|
||||
|
||||
(debug-printf admin " restoring preferences file ~s to ~s\n"
|
||||
old-preferences-file preferences-file)
|
||||
(when (file-exists? preferences-file)
|
||||
(unless (file-exists? old-preferences-file)
|
||||
(error 'framework-test "lost preferences file backup!"))
|
||||
(when (file-exists? old-preferences-file)
|
||||
(debug-printf admin " restoring preferences file ~s to ~s\n"
|
||||
old-preferences-file preferences-file)
|
||||
(delete-file preferences-file)
|
||||
(copy-file old-preferences-file preferences-file)
|
||||
(delete-file old-preferences-file))
|
||||
(debug-printf admin " restored preferences file\n")
|
||||
(delete-file old-preferences-file)
|
||||
(debug-printf admin " restored preferences file\n"))
|
||||
|
||||
(shutdown-listener)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user