Home
last modified time | relevance | path

Searched refs:source_file (Results 1 – 1 of 1) sorted by relevance

/bootable/recovery/applypatch/
Dapplypatch.cpp48 static int GenerateTarget(const FileContents& source_file, const std::unique_ptr<Value>& patch,
499 FileContents source_file; in applypatch() local
500 if (LoadFileContents(target_filename, &source_file) == 0) { in applypatch()
501 if (memcmp(source_file.sha1, target_sha1, SHA_DIGEST_LENGTH) == 0) { in applypatch()
509 if (source_file.data.empty() || in applypatch()
513 source_file.data.clear(); in applypatch()
514 LoadFileContents(source_filename, &source_file); in applypatch()
517 if (!source_file.data.empty()) { in applypatch()
518 int to_use = FindMatchingPatch(source_file.sha1, patch_sha1_str); in applypatch()
520 return GenerateTarget(source_file, patch_data[to_use], target_filename, target_sha1, in applypatch()
[all …]