summaryrefslogtreecommitdiffstats
path: root/updater/install.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-07-13 22:05:21 +0200
committerandroid-build-merger <android-build-merger@google.com>2018-07-13 22:05:21 +0200
commit399efe580621fb5c22aa163982af4b00122fa4ef (patch)
tree81909b18c39e8fa0e37f18d887a0482cef39c50a /updater/install.cpp
parentMerge "tests: Clean up the temporary dirs post-run." am: b46e565fd8 am: d8e96f4b4d (diff)
parentMerge "applypatch: Consolidate CacheSizeCheck() and MakeFreeSpaceOnCache()." am: 624b6b6cd5 (diff)
downloadandroid_bootable_recovery-399efe580621fb5c22aa163982af4b00122fa4ef.tar
android_bootable_recovery-399efe580621fb5c22aa163982af4b00122fa4ef.tar.gz
android_bootable_recovery-399efe580621fb5c22aa163982af4b00122fa4ef.tar.bz2
android_bootable_recovery-399efe580621fb5c22aa163982af4b00122fa4ef.tar.lz
android_bootable_recovery-399efe580621fb5c22aa163982af4b00122fa4ef.tar.xz
android_bootable_recovery-399efe580621fb5c22aa163982af4b00122fa4ef.tar.zst
android_bootable_recovery-399efe580621fb5c22aa163982af4b00122fa4ef.zip
Diffstat (limited to '')
-rw-r--r--updater/install.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/updater/install.cpp b/updater/install.cpp
index ba7bd55b0..f9333459b 100644
--- a/updater/install.cpp
+++ b/updater/install.cpp
@@ -686,7 +686,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("");