Lines Matching refs:name
153 result = tgtfiles.get("path:" + src.name)
164 if result is not None and existing.get(result.name) is None:
166 result = tgtfiles.get("file:" + src.name.split("/")[-1])
167 if result is not None and existing.get(result.name) is None:
177 def Get(self, name, is_dir=False): argument
178 if name not in self.ITEMS:
179 self.ITEMS[name] = Item(self, name, is_dir=is_dir)
180 return self.ITEMS[name]
191 name, uid, gid, mode = columns[:4]
204 i = self.ITEMS.get(name, None)
212 i.children.sort(key=lambda i: i.name)
226 def __init__(self, itemset, name, is_dir=False): argument
228 self.name = name
238 if name:
239 self.parent = itemset.Get(os.path.dirname(name), is_dir=True)
249 " " * indent, self.name, self.uid, self.gid, self.mode)
252 " " * indent, self.name, self.uid, self.gid, self.mode)
331 script.SetPermissionsRecursive("/"+item.name, *item.best_subtree)
337 script.SetPermissions("/"+item.name, item.uid, item.gid,
346 script.SetPermissions("/"+item.name, item.uid, item.gid,
431 def GetOemProperty(name, oem_props, oem_dict, info_dict): argument
432 if oem_props is not None and name in oem_props:
433 return oem_dict[name]
434 return GetBuildProp(name, info_dict)
993 assert fn == sf.name
999 if target_data.get(sf.name) is None:
1005 assert fn == tf.name
1007 if sf is not None and sf.name != tf.name:
1008 print "File has moved from " + sf.name + " to " + tf.name
1009 renames[sf.name] = tf
1031 path = "/".join(tf.name.split("/")[:-1])
1038 verbatim_targets.append((tf.name, tf.size, tf.sha1))
1039 if sf.name in renames:
1040 del renames[sf.name]
1041 AddToKnownPaths(tf.name, known_paths)
1043 common.ZipWriteStr(output_zip, "patch/" + sf.name + ".p", d)
1052 if tf.name != sf.name:
1053 script.SkipNextActionIfTargetExists(tf.name, tf.sha1)
1054 script.PatchCheck("/"+sf.name, tf.sha1, sf.sha1)
1063 script.FileCheck(tf.name, tf.sha1)
1079 if tf.name == "system/build.prop":
1082 if sf.name != tf.name:
1083 script.SkipNextActionIfTargetExists(tf.name, tf.sha1)
1084 script.ApplyPatch("/" + sf.name, "-", tf.size, tf.sha1, sf.sha1,
1085 "patch/" + sf.name + ".p")
1093 script.ApplyPatch("/"+sf.name, "-", tf.size, tf.sha1, sf.sha1,
1094 "patch/" + sf.name + ".p")
1101 print "Renaming " + src + " to " + tgt.name
1102 script.RenameFile(src, tgt.name)
1402 replaced_symlinks["/%s" % (tf.name,)] = tf.sha1
1405 replaced_symlinks["/%s" % (tf.name,)] = tf.sha1
1650 SignOutput(temp_zip_file.name, args[1])