diff options
author | Tianjie Xu <xunchang@google.com> | 2018-03-01 19:36:05 +0100 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-03-01 19:36:05 +0100 |
commit | 47cd789eeddcdc35e4602c426c015098860f9344 (patch) | |
tree | 9db0b6bd746646486aa990daecf8e3302c49b4c0 /updater/updater.cpp | |
parent | Merge "Fix the behavior of undefined commands in BlockImageVerify" (diff) | |
parent | Add a singleton CacheLocation to replace the hard coded locations (diff) | |
download | android_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 'updater/updater.cpp')
-rw-r--r-- | updater/updater.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/updater/updater.cpp b/updater/updater.cpp index f55a0d3bd..f063e5fa1 100644 --- a/updater/updater.cpp +++ b/updater/updater.cpp @@ -34,6 +34,7 @@ #include "otafault/config.h" #include "otautil/DirUtil.h" #include "otautil/SysUtil.h" +#include "otautil/cache_location.h" #include "otautil/error_code.h" #include "updater/blockimg.h" #include "updater/install.h" @@ -168,6 +169,10 @@ int main(int argc, char** argv) { } ota_io_init(za, state.is_retry); + // Initialize the cache_temp_source, last_command_file and stash_directory_base to their default + // locations. + CacheLocation::location().ResetLocations(); + std::string result; bool status = Evaluate(&state, root, &result); |