Remove leftover .moz-backup files when applying a staged update
Categories
(Toolkit :: Application Update, task)
Tracking
()
People
(Reporter: yannis, Assigned: melchior.vila)
References
(Blocks 1 open bug)
Details
Attachments
(1 external file)
An earlier failed non-staged update can leave .moz-backup files in the installation directory (see bug 2076326 comment 1). Applying a staged update currently leaves these files in place without cleaning them up, so they can survive any number of staged updates until a later non-staged update that lists the corresponding path succeeds.
A staged update should not preserve these leftovers. Bug 2076332 already stops the updater from restoring a .moz-backup file it did not create itself, so this is a sanity cleanup rather than a critical fix: it removes old binaries that serve no purpose and that older updaters could still restore.
A failed non-staged update can leave .moz-backup files in the installation
directory. Staging copied them into the updated directory like any other file,
so they survived any number of staged updates. Skip them during the copy, as is
already done for leftover drafts.
Updated•3 days ago
|
Description
•