Home | History | Annotate | Download | only in applypatch

Lines Matching refs:patch

576 //   entries in <patch_sha1_str>, the corresponding patch from
578 // new file (the type of patch is automatically detected from the
600 printf("\napplying patch to %s\n", source_filename);
622 // The early-exit case: the patch was already applied, this file
624 printf("\"%s\" is already target; no patch needed\n",
761 const Value* patch;
764 patch = source_patch_value;
767 patch = copy_patch_value;
770 if (patch->type != VAL_BLOB) {
771 printf("patch is not a blob\n");
793 // We write the decoded output to "<tgt-file>.patch".
796 strcat(outname, ".patch");
808 char* header = patch->data;
809 ssize_t header_bytes_read = patch->size;
818 patch, 0, sink, token, &ctx);
822 patch, sink, token, &ctx);
824 printf("Unknown patch file format\n");
835 printf("applying patch failed\n");
838 printf("applying patch failed; retrying\n");
851 printf("patch did not produce expected sha1\n");
863 // Give the .patch file the same owner, group, and mode of the
875 // Finally, rename the .patch file to replace the target file.
877 printf("rename of .patch to \"%s\" failed: %s\n",