Open Bug 2079717 Opened 1 month ago Updated 3 days ago

Remove leftover .moz-backup files when applying a staged update

Categories

(Toolkit :: Application Update, task)

task

Tracking

()

ASSIGNED

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.

See Also: → 2090312

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.

Assignee: nobody → melchior.vila
Status: NEW → ASSIGNED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: