summaryrefslogtreecommitdiffstats
path: root/updater/updater.cpp
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2018-03-04 09:22:47 +0100
committerandroid-build-team Robot <android-build-team-robot@google.com>2018-03-04 09:22:47 +0100
commit328e4aa9055414a74e9bdf31526fdee0e268078a (patch)
treecdf6bc19fb0749ae82402af11aa34ab7db1a6f6e /updater/updater.cpp
parentSnap for 4628106 from bb928df6ebd70ac0680184927ea00b373c3e507f to pi-release (diff)
parentMerge "Add a singleton CacheLocation to replace the hard coded locations" am: 47cd789eed am: a72f93d6da (diff)
downloadandroid_bootable_recovery-328e4aa9055414a74e9bdf31526fdee0e268078a.tar
android_bootable_recovery-328e4aa9055414a74e9bdf31526fdee0e268078a.tar.gz
android_bootable_recovery-328e4aa9055414a74e9bdf31526fdee0e268078a.tar.bz2
android_bootable_recovery-328e4aa9055414a74e9bdf31526fdee0e268078a.tar.lz
android_bootable_recovery-328e4aa9055414a74e9bdf31526fdee0e268078a.tar.xz
android_bootable_recovery-328e4aa9055414a74e9bdf31526fdee0e268078a.tar.zst
android_bootable_recovery-328e4aa9055414a74e9bdf31526fdee0e268078a.zip
Diffstat (limited to 'updater/updater.cpp')
-rw-r--r--updater/updater.cpp5
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);