Lines Matching full:path

21   target_package        Target package file path.

22 update_package Update package file path.
27 Source package file path.
31 Variable partition mode, Partition list file path.
39 Private key file path.
44 -xp, --xml_path XML file path.
97 if arg is not None and not os.path.exists(arg):
99 "FileNotFoundError, path: %s" % arg, UPDATE_LOGGER.ERROR_LOG)
111 if arg != "ON_SERVER" and not os.path.isfile(arg):
113 "FileNotFoundError, path: %s" % arg, UPDATE_LOGGER.ERROR_LOG)
121 the update package path exists.
126 if os.path.exists(arg):
127 if os.path.isfile(arg):
129 "Update package must be a dir path, not a file path. "
130 "path: %s" % arg, UPDATE_LOGGER.ERROR_LOG)
135 "Update package path does not exist. The dir will be created!"
136 "path: %s" % arg, UPDATE_LOGGER.WARNING_LOG)
141 "Make update package path dir failed! "
142 "path: %s" % arg, UPDATE_LOGGER.ERROR_LOG)
153 the update package path exists.
157 unpack_package = os.path.join(OPTIONS_MANAGER.update_package, arg)
158 if not os.path.isfile(unpack_package):
160 "FileNotFoundError, path: %s" % unpack_package, UPDATE_LOGGER.ERROR_LOG)
172 update_package : update package output path
176 private_key : path of the private key file
183 default=None, help="Source package file path.")
185 help="Target package file path.")
187 help="Update package file path.")
192 "Partition list file path.")
203 default=None, help="Private key file path.")
212 default=None, help="XML file path.")
278 :param source_package: source package path
281 if os.path.isdir(source_package):
293 "path: %s" % source_package, UPDATE_LOGGER.ERROR_LOG)
337 xml_path = os.path.join(OPTIONS_MANAGER.source_package_dir, UPDATER_CONFIG, XML_FILE_PATH)
341 if os.path.exists(xml_path):
345 UPDATE_LOGGER.print_log("XML file does not exist! xml path: %s" %
372 "Please check xml config, path: %s!" %
373 os.path.join(OPTIONS_MANAGER.target_package_config_dir,
391 "Please check xml config, path: %s!" %
392 os.path.join(OPTIONS_MANAGER.target_package_config_dir,
402 Check the target_package path.
403 :param target_package: target package path
406 if os.path.isdir(target_package):
411 os.path.join(target_package, UPDATER_CONFIG)
414 "Exception's target package path! path: %s" %
426 os.path.join(unzip_dir, UPDATER_CONFIG)
429 "Input Update Package type exception! path: %s" %
477 :param image_path: image path
478 :param map_path: image map file path
482 if not os.path.exists(image_path):
523 src_size = os.path.getsize(src_image_path)
525 tgt_size = os.path.getsize(tgt_image_path)
541 image_patch_cmd = verse_script.image_patch(partition, os.path.getsize(src_image_path),
542 get_file_sha256(src_image_path), os.path.getsize(tgt_image_path),
557 :param source_package_dir: source package path
558 :param target_package_dir: target package path
605 :param source_package_dir: source package path
606 :param target_package_dir: target package path
614 each_src_image_path = os.path.join(source_package_dir, '%s.img' % each_img)
615 each_src_map_path = os.path.join(source_package_dir, '%s.map' % each_img)
616 each_tgt_image_path = os.path.join(target_package_dir, '%s.img' % each_img)
617 each_tgt_map_path = os.path.join(target_package_dir, '%s.map' % each_img)
622 UPDATE_LOGGER.print_log("Source Image is the same as Target Image! src image path: %s, tgt image path: %s"
629 if not os.path.exists(each_src_map_path):
632 if not os.path.exists(each_tgt_map_path):
691 (os.path.getsize(new_dat_file_obj.name) == num * PER_BLOCK_SIZE) and \
692 (os.path.getsize(patch_dat_file_obj.name) == diff_num)
720 :param partition_file: partition xml file path
721 :param source_package: source package path
747 :param private_key: private key path
748 :param source_package: source package path
749 :param target_package: target package path
750 :param update_package: output package path