diff options
author | Tianjie Xu <xunchang@google.com> | 2018-03-01 19:52:54 +0100 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-03-01 19:52:54 +0100 |
commit | 6c87845cfbb776969829b31acc26d770b1acf2be (patch) | |
tree | 4331b14fca44fbeb53d49614804c11569763d59b /applypatch/freecache.cpp | |
parent | Merge "Fix the behavior of undefined commands in BlockImageVerify" am: ac4818d6af (diff) | |
parent | Merge "Add a singleton CacheLocation to replace the hard coded locations" (diff) | |
download | android_bootable_recovery-6c87845cfbb776969829b31acc26d770b1acf2be.tar android_bootable_recovery-6c87845cfbb776969829b31acc26d770b1acf2be.tar.gz android_bootable_recovery-6c87845cfbb776969829b31acc26d770b1acf2be.tar.bz2 android_bootable_recovery-6c87845cfbb776969829b31acc26d770b1acf2be.tar.lz android_bootable_recovery-6c87845cfbb776969829b31acc26d770b1acf2be.tar.xz android_bootable_recovery-6c87845cfbb776969829b31acc26d770b1acf2be.tar.zst android_bootable_recovery-6c87845cfbb776969829b31acc26d770b1acf2be.zip |
Diffstat (limited to '')
-rw-r--r-- | applypatch/freecache.cpp | 3 |
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; } |