Home | History | Annotate | Download | only in releasetools

Lines Matching defs:Item

110 class Item:
122 self.parent = Item.Get(os.path.dirname(name), dir=True)
143 cls.ITEMS[name] = Item(name, dir=dir)
155 # uid, gid, and mode for every Item object. Note this uses the
191 sets the best_subtree of each directory Item to the (uid, gid,
193 Item.
235 def recurse(item, current):
237 # item (and all its children) have already been set to. We only
240 if item.dir:
241 if current != item.best_subtree:
242 script.SetPermissionsRecursive("/"+item.name, *item.best_subtree)
243 current = item.best_subtree
245 if item.uid != current[0] or item.gid != current[1] or \
246 item.mode != current[2]:
247 script.SetPermissions("/"+item.name, item.uid, item.gid, item.mode)
249 for i in item.children:
252 if item.uid != current[0] or item.gid != current[1] or \
253 item.mode != current[3]:
254 script.SetPermissions("/"+item.name, item.uid, item.gid, item.mode)
262 zip. Populates the Item class with their metadata, and returns a
294 Item.Get(fn[:-1], dir=True)
296 Item.Get(fn, dir=False)
327 Returns an Item for the shell script, which must be made
334 Item.Get("system/recovery-from-boot.p", dir=False)
363 return Item.Get("system/etc/install-recovery.sh", dir=False)
416 Item.GetMetadata(input_zip)
417 Item.Get("system").SetPermissions(script)
622 for item in patch_list:
623 fn, tf, sf, size, _ = item
625 deferred_patch_list.append(item)
674 Item.GetMetadata(target_zip)
675 Item.Get("system").SetPermissions(temp_script)
732 for item in deferred_patch_list:
733 fn, tf, sf, size, _ = item