Home | History | Annotate | Download | only in releasetools

Lines Matching refs:Item

142 class Item:
156 self.parent = Item.Get(os.path.dirname(name), dir=True)
177 cls.ITEMS[name] = Item(name, dir=dir)
227 sets the best_subtree of each directory Item to the (uid, gid,
229 descendants of that Item.
275 def recurse(item, current):
277 # item (and all its children) have already been set to. We only
280 if item.dir:
281 if current != item.best_subtree:
282 script.SetPermissionsRecursive("/"+item.name, *item.best_subtree)
283 current = item.best_subtree
285 if item.uid != current[0] or item.gid != current[1] or \
286 item.mode != current[2] or item.selabel != current[4] or \
287 item.capabilities != current[5]:
288 script.SetPermissions("/"+item.name, item.uid, item.gid,
289 item.mode, item.selabel, item.capabilities)
291 for i in item.children:
294 if item.uid != current[0] or item.gid != current[1] or \
295 item.mode != current[3] or item.selabel != current[4] or \
296 item.capabilities != current[5]:
297 script.SetPermissions("/"+item.name, item.uid, item.gid,
298 item.mode, item.selabel, item.capabilities)
306 zip. Populates the Item class with their metadata, and returns a
333 Item.Get(fn[:-1], dir=True)
335 Item.Get(fn, dir=False)
366 Returns an Item for the shell script, which must be made
382 Item.Get("system/recovery-from-boot.p", dir=False)
405 return Item.Get("system/etc/install-recovery.sh", dir=False)
500 Item.GetMetadata(input_zip)
501 Item.Get("system").SetPermissions(script)
816 for item in patch_list:
817 tf, sf, size, _ = item
819 deferred_patch_list.append(item)
870 Item.GetMetadata(target_zip)
871 Item.Get("system").SetPermissions(temp_script)
931 for item in deferred_patch_list:
932 tf, sf, size, _ = item