summaryrefslogtreecommitdiffstats
path: root/updater/include
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2019-07-31 01:48:52 +0200
committerTianjie Xu <xunchang@google.com>2019-07-31 02:11:35 +0200
commit60b242cfd58a234727f5d339e2f6fa4e91ffe1fa (patch)
tree2c3f3befcf97039b2670395d18a2f953bc1c70c4 /updater/include
parentMerge "Create a new function to return the help message for menu" (diff)
downloadandroid_bootable_recovery-60b242cfd58a234727f5d339e2f6fa4e91ffe1fa.tar
android_bootable_recovery-60b242cfd58a234727f5d339e2f6fa4e91ffe1fa.tar.gz
android_bootable_recovery-60b242cfd58a234727f5d339e2f6fa4e91ffe1fa.tar.bz2
android_bootable_recovery-60b242cfd58a234727f5d339e2f6fa4e91ffe1fa.tar.lz
android_bootable_recovery-60b242cfd58a234727f5d339e2f6fa4e91ffe1fa.tar.xz
android_bootable_recovery-60b242cfd58a234727f5d339e2f6fa4e91ffe1fa.tar.zst
android_bootable_recovery-60b242cfd58a234727f5d339e2f6fa4e91ffe1fa.zip
Diffstat (limited to 'updater/include')
-rw-r--r--updater/include/updater/build_info.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/updater/include/updater/build_info.h b/updater/include/updater/build_info.h
index 22299579f..0073bfa4a 100644
--- a/updater/include/updater/build_info.h
+++ b/updater/include/updater/build_info.h
@@ -43,7 +43,8 @@ class FakeBlockDevice {
// query the information and run the update on host.
class BuildInfo {
public:
- explicit BuildInfo(const std::string_view work_dir) : work_dir_(work_dir) {}
+ BuildInfo(const std::string_view work_dir, bool keep_images)
+ : work_dir_(work_dir), keep_images_(keep_images) {}
// Returns the value of the build properties.
std::string GetProperty(const std::string_view key, const std::string_view default_value) const;
// Returns the path to the mock block device.
@@ -69,4 +70,5 @@ class BuildInfo {
std::list<TemporaryFile> temp_files_;
std::string work_dir_; // A temporary directory to store the extracted image files
+ bool keep_images_;
};