Home | History | Annotate | Download | only in releasetools

Lines Matching refs:tf

940       tf = target_data[fn]
941 assert fn == tf.name
942 sf = ClosestFileMatch(tf, matching_file_cache, renames)
943 if sf is not None and sf.name != tf.name:
944 print "File has moved from " + sf.name + " to " + tf.name
945 renames[sf.name] = tf
952 tf.AddToZip(output_zip)
953 verbatim_targets.append((fn, tf.size, tf.sha1))
956 elif tf.sha1 != sf.sha1:
958 diffs.append(common.Difference(tf, sf))
966 tf, sf, d = diff.GetPatch()
967 path = "/".join(tf.name.split("/")[:-1])
968 if d is None or len(d) > tf.size * OPTIONS.patch_threshold or \
973 tf.AddToZip(output_zip)
974 verbatim_targets.append((tf.name, tf.size, tf.sha1))
977 AddToKnownPaths(tf.name, known_paths)
980 patch_list.append((tf, sf, tf.size, common.sha1(d).hexdigest()))
987 for tf, sf, size, patch_sha in self.patch_list:
988 if tf.name != sf.name:
989 script.SkipNextActionIfTargetExists(tf.name, tf.sha1)
990 script.PatchCheck("/"+sf.name, tf.sha1, sf.sha1)
998 for tf, _, _, _ in self.patch_list:
999 script.FileCheck(tf.name, tf.sha1)
1014 tf, sf, size, _ = item
1015 if tf.name == "system/build.prop":
1018 if (sf.name != tf.name):
1019 script.SkipNextActionIfTargetExists(tf.name, tf.sha1)
1020 script.ApplyPatch("/"+sf.name, "-", tf.size, tf.sha1, sf.sha1, "patch/"+sf.name+".p")
1021 so_far += tf.size
1027 tf, sf, size, _ = item
1028 script.ApplyPatch("/"+sf.name, "-", tf.size, tf.sha1, sf.sha1, "patch/"+sf.name+".p")