Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f295661 authored by Alex Light's avatar Alex Light
Browse files

Make installd log A/B missing artifacts

In the case of A/B update failures it can be difficult to determine
where things went wrong. This change explictly logs missing files to
provide more information for investigators

Test: treehugger
Bug: 181182967
Change-Id: Ifa27d2b9640270e3b250e6e96ddf7681fb1f519d
parent 75dbd5e9
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2112,8 +2112,9 @@ static bool move_ab_path(const std::string& b_path, const std::string& a_path) {
    {
        struct stat s;
        if (stat(b_path.c_str(), &s) != 0) {
            // Silently ignore for now. The service calling this isn't smart enough to understand
            // lack of artifacts at the moment.
            // Ignore for now. The service calling this isn't smart enough to
            // understand lack of artifacts at the moment.
            LOG(VERBOSE) << "A/B artifact " << b_path << " does not exist!";
            return false;
        }
        if (!S_ISREG(s.st_mode)) {