summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2020-02-07 11:05:52 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2020-02-07 11:05:52 +0000
commit34d5891d90fcc33ed7767c8c36a8f34d9cc908a3 (patch)
tree1bf2d6bd8304da720733eadb664c07c75ccb5b9f
parent74a2eb62f434fccd0299e9ca7eab614fa5b7d291 (diff)
parent20d1dca93456512d1563880bb9e2494fa98079dd (diff)
Merge "Convert frameworks/native to Result::ok()" am: 4a495bd448 am: 445b5a49c4 am: 20d1dca934
Change-Id: Iede7e27936fec1d328cff25d34f0461a3a71b774
-rw-r--r--cmds/installd/otapreopt_chroot.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/installd/otapreopt_chroot.cpp b/cmds/installd/otapreopt_chroot.cpp
index 3ff9d11806..7c989f6ced 100644
--- a/cmds/installd/otapreopt_chroot.cpp
+++ b/cmds/installd/otapreopt_chroot.cpp
@@ -73,7 +73,7 @@ static void DeactivateApexPackages(const std::vector<apex::ApexFile>& active_pac
for (const apex::ApexFile& apex_file : active_packages) {
const std::string& package_path = apex_file.GetPath();
base::Result<void> status = apex::deactivatePackage(package_path);
- if (!status) {
+ if (!status.ok()) {
LOG(ERROR) << "Failed to deactivate " << package_path << ": "
<< status.error();
}