def MAIN_PATCH(args, patch_group_name): set_global(args) for patch in iopc.get_patch_list(pkg_path, patch_group_name): if iopc.apply_patch(tarball_dir, patch): continue else: sys.exit(1) return True