Lines Matching refs:package
57 def __init__(self, package): argument
58 self.package = package
79 lines = self.package.read(name).strip().splitlines()
145 new_data = self.package.getinfo(partition + ".new.dat")
146 patch_data = self.package.getinfo(partition + ".patch.dat")
165 assert partition + ".new.dat" in self.package.namelist()
166 assert partition + ".patch.dat" in self.package.namelist()
167 assert partition + ".transfer.list" in self.package.namelist()
176 for line in self.package.read(metadata_path).strip().splitlines():
188 logging.info("Analyzing ota package: " + self.package.filename)
190 assert "system.new.dat" in self.package.namelist()
192 if "vendor.new.dat" in self.package.namelist():
218 with zipfile.ZipFile(args.ota_package, 'r', allowZip64=True) as package:
219 package_parser = OtaPackageParser(package)