summaryrefslogtreecommitdiffstats
path: root/applypatch/freecache.cpp
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2018-03-01 19:36:05 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-03-01 19:36:05 +0100
commit47cd789eeddcdc35e4602c426c015098860f9344 (patch)
tree9db0b6bd746646486aa990daecf8e3302c49b4c0 /applypatch/freecache.cpp
parentMerge "Fix the behavior of undefined commands in BlockImageVerify" (diff)
parentAdd a singleton CacheLocation to replace the hard coded locations (diff)
downloadandroid_bootable_recovery-47cd789eeddcdc35e4602c426c015098860f9344.tar
android_bootable_recovery-47cd789eeddcdc35e4602c426c015098860f9344.tar.gz
android_bootable_recovery-47cd789eeddcdc35e4602c426c015098860f9344.tar.bz2
android_bootable_recovery-47cd789eeddcdc35e4602c426c015098860f9344.tar.lz
android_bootable_recovery-47cd789eeddcdc35e4602c426c015098860f9344.tar.xz
android_bootable_recovery-47cd789eeddcdc35e4602c426c015098860f9344.tar.zst
android_bootable_recovery-47cd789eeddcdc35e4602c426c015098860f9344.zip
Diffstat (limited to 'applypatch/freecache.cpp')
-rw-r--r--applypatch/freecache.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/applypatch/freecache.cpp b/applypatch/freecache.cpp
index ec1d20cec..ea364d8e6 100644
--- a/applypatch/freecache.cpp
+++ b/applypatch/freecache.cpp
@@ -33,6 +33,7 @@
#include <android-base/stringprintf.h>
#include "applypatch/applypatch.h"
+#include "otautil/cache_location.h"
static int EliminateOpenFiles(std::set<std::string>* files) {
std::unique_ptr<DIR, decltype(&closedir)> d(opendir("/proc"), closedir);
@@ -92,7 +93,7 @@ static std::set<std::string> FindExpendableFiles() {
// We can't delete cache_temp_source; if it's there we might have restarted during
// installation and could be depending on it to be there.
- if (path == cache_temp_source) {
+ if (path == CacheLocation::location().cache_temp_source()) {
continue;
}