summaryrefslogtreecommitdiffstats
path: root/updater/updater.cpp
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2018-03-01 19:58:27 +0100
committerandroid-build-merger <android-build-merger@google.com>2018-03-01 19:58:27 +0100
commit4249cdfe29491b0ad8c418d8015a50cb37b6ff9b (patch)
treecdf6bc19fb0749ae82402af11aa34ab7db1a6f6e /updater/updater.cpp
parentMerge "Fix the behavior of undefined commands in BlockImageVerify" am: ac4818d6af am: 7b9a92c1e2 (diff)
parentMerge "Add a singleton CacheLocation to replace the hard coded locations" am: 47cd789eed (diff)
downloadandroid_bootable_recovery-4249cdfe29491b0ad8c418d8015a50cb37b6ff9b.tar
android_bootable_recovery-4249cdfe29491b0ad8c418d8015a50cb37b6ff9b.tar.gz
android_bootable_recovery-4249cdfe29491b0ad8c418d8015a50cb37b6ff9b.tar.bz2
android_bootable_recovery-4249cdfe29491b0ad8c418d8015a50cb37b6ff9b.tar.lz
android_bootable_recovery-4249cdfe29491b0ad8c418d8015a50cb37b6ff9b.tar.xz
android_bootable_recovery-4249cdfe29491b0ad8c418d8015a50cb37b6ff9b.tar.zst
android_bootable_recovery-4249cdfe29491b0ad8c418d8015a50cb37b6ff9b.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);