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

Commit 3f994ebc authored by Elliott Hughes's avatar Elliott Hughes Committed by Android Git Automerger
Browse files

am 5b3ca7b1: resolved conflicts for merge of de28adf3 to mnc-dev-plus-aosp

* commit '5b3ca7b1':
  Don't say "update package missing" unless we mean it.
parents fe505e19 5b3ca7b1
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -724,13 +724,14 @@ void do_update(usb_handle *usb, const char *filename, int erase_first)

    setup_requirements(reinterpret_cast<char*>(data), sz);

    for (size_t i = 0; i < ARRAY_SIZE(images); i++) {
    for (size_t i = 0; i < ARRAY_SIZE(images); ++i) {
        int fd = unzip_to_file(zip, images[i].img_name);
        if (fd < 0) {
            if (images[i].is_optional)
        if (fd == -1) {
            if (images[i].is_optional) {
                continue;
            }
            CloseArchive(zip);
            die("update package missing %s", images[i].img_name);
            exit(1); // unzip_to_file already explained why.
        }
        fastboot_buffer buf;
        int rc = load_buf_fd(usb, fd, &buf);