Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Bug 1084041 - Remove files after applying FOTA r=gsvelto #409

Merged
merged 1 commit into from Jan 7, 2015

Conversation

lissyx
Copy link
Contributor

@lissyx lissyx commented Dec 23, 2014

We should not have any leftover files after applying a FOTA package
update, so we should ensure we are removing them at the end of the
process:

  • MAR package that has been extracted to /data/local/...
  • update.zip that has been extracted to the sdcard for applying in
    recovery mode

We should not have any leftover files after applying a FOTA package
update, so we should ensure we are removing them at the end of the
process:
 - MAR package that has been extracted to /data/local/...
 - update.zip that has been extracted to the sdcard for applying in
   recovery mode
@@ -46,6 +46,8 @@ def build_flash_fota(args):
builder.fota_dirs = args.fota_dirs.split(' ')
builder.fota_files = [line.rstrip() for line in open(args.fota_files, 'r')]

builder.fota_sdcard = args.fota_sdcard or "/sdcard"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Do you really need this? You're already setting /sdcard as the default path in the add_argument() call below

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I've seen some devices where the device tree configuration may be wrong, so this is not 100% required, but it makes sure we won't generate improper paths.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, let's leave it in then.

lissyx added a commit that referenced this pull request Jan 7, 2015
Bug 1084041 - Remove files after applying FOTA r=gsvelto
@lissyx lissyx merged commit 5ea5b03 into mozilla-b2g:master Jan 7, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants