summaryrefslogtreecommitdiffstats
path: root/updater/install.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-07-12 00:55:32 +0200
committerTao Bao <tbao@google.com>2018-07-13 18:42:19 +0200
commit5ee25666cc819e9ebc9b72c7a44c4bc9bab9e4e3 (patch)
treeeeadaddce1095a7f53dbc86941de0a00b5325b8d /updater/install.cpp
parentMerge "tests: Clean up the temporary dirs post-run." (diff)
downloadandroid_bootable_recovery-5ee25666cc819e9ebc9b72c7a44c4bc9bab9e4e3.tar
android_bootable_recovery-5ee25666cc819e9ebc9b72c7a44c4bc9bab9e4e3.tar.gz
android_bootable_recovery-5ee25666cc819e9ebc9b72c7a44c4bc9bab9e4e3.tar.bz2
android_bootable_recovery-5ee25666cc819e9ebc9b72c7a44c4bc9bab9e4e3.tar.lz
android_bootable_recovery-5ee25666cc819e9ebc9b72c7a44c4bc9bab9e4e3.tar.xz
android_bootable_recovery-5ee25666cc819e9ebc9b72c7a44c4bc9bab9e4e3.tar.zst
android_bootable_recovery-5ee25666cc819e9ebc9b72c7a44c4bc9bab9e4e3.zip
Diffstat (limited to 'updater/install.cpp')
-rw-r--r--updater/install.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/updater/install.cpp b/updater/install.cpp
index d0be955a7..088d24b31 100644
--- a/updater/install.cpp
+++ b/updater/install.cpp
@@ -688,7 +688,7 @@ Value* ApplyPatchSpaceFn(const char* name, State* state,
}
// Skip the cache size check if the update is a retry.
- if (state->is_retry || CacheSizeCheck(bytes) == 0) {
+ if (state->is_retry || CheckAndFreeSpaceOnCache(bytes)) {
return StringValue("t");
}
return StringValue("");