Clean up stale .moz-backup files listed in the manifest during the Prepare phase
Categories
(Toolkit :: Application Update, task)
Tracking
()
People
(Reporter: yannis, Unassigned)
References
(Blocks 1 open bug)
Details
Bug 2076332 made the updater restore a .moz-backup file only if the current run created it. A leftover .moz-backup file from an earlier failed non-staged update (see bug 2076326 comment 1) can still remain in the installation directory after a later non-staged update fails, because the cleanup only happens in Finish() for actions that reached the point where they create their own backup.
During the PREPARE phase of a non-staged update, the updater should discard any existing .moz-backup file for each path the manifest lists, the same way the Draft phase already discards stale .moz-draft files (see draft_discard in AddFile::Draft and PatchFile::Draft). That way a leftover cannot survive into a later run at all.
This is a sanity cleanup, not a critical fix.
Description
•