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

Bug 1058511 - Clear Gecko HTTP cache before checking free cache space. r=gerard-majax #71

Merged

Conversation

Pehrsons
Copy link

No description provided.

@@ -652,6 +652,12 @@ def WriteIncrementalOTAPackage(target_zip, source_zip, output_zip):
script.SetProgress(so_far / total_verify_size)

if patch_list or updating_recovery or updating_boot:
# We clear Gecko's HTTP cache before the regular space check. Even though
# CacheFreeSpaceCheck() clears files to free up the desired space, the
# Gecko HTTP cache is not seen as safe to delete and won't be touched.
Copy link

Choose a reason for hiding this comment

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

I don't follow this line - you say HTTP cache won't be touched, but on other two lines you completely wipe it, so where is the truth?

Copy link
Author

Choose a reason for hiding this comment

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

Yeah, you really have to read it to the letter. :)
CacheFreeSpaceCheck() does not dare to touch gecko's cache, but we can do it manually.

I'll try to clarify this sentence before checking in, thanks!

@Pehrsons Pehrsons changed the title Bug 1058511 - Clear Gecko HTTP cache before checking free cache space Bug 1058511 - Clear Gecko HTTP cache before checking free cache space. r=gerard-majax Sep 4, 2014
rvandermeulen added a commit that referenced this pull request Sep 4, 2014
Bug 1058511 - Clear Gecko HTTP cache before checking free cache space. r=gerard-majax
@rvandermeulen rvandermeulen merged commit fe92ddd into mozilla-b2g:b2g-4.4.2_r1 Sep 4, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants