Home | History | Annotate | Download | only in recovery

Lines Matching refs:zip

39 #include "minzip/Zip.h"
74 static void read_source_target_build(ZipArchive* zip, std::vector<std::string>& log_buffer) {
75 const ZipEntry* meta_entry = mzFindZipEntry(zip, METADATA_PATH);
82 if (!mzReadZipEntry(zip, meta_entry, &meta_data[0], meta_entry->uncompLen)) {
111 try_update_binary(const char* path, ZipArchive* zip, bool* wipe_cache,
114 read_source_target_build(zip, log_buffer);
117 mzFindZipEntry(zip, ASSUMED_UPDATE_BINARY_NAME);
119 mzCloseZipArchive(zip);
127 mzCloseZipArchive(zip);
131 bool ok = mzExtractZipEntryToFile(zip, binary_entry, fd);
133 mzCloseZipArchive(zip);
186 // - the name of the package zip file.
326 ZipArchive zip;
327 err = mzOpenZipArchive(map.addr, map.length, &zip);
342 int result = try_update_binary(path, &zip, wipe_cache, log_buffer, retry_count);