Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
chenmozhijin committed Sep 15, 2024
1 parent 22e531e commit cd4fb38
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build_helper/prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def prepare(configs: dict[str, dict[str, Any]]) -> None:
tasks = []
for cfg_name, openwrt in openwrts.items():
config = configs[cfg_name]
tasks.append((config, cfg_name, openwrt, cloned_repos, global_files_path, compiler))
tasks.append((config, cfg_name, openwrt.path, cloned_repos, global_files_path, compiler))
with Pool(len(cfg_names)) as p:
for cfg_name, config, tar_path in p.starmap(prepare_cfg, tasks):
configs[cfg_name] = config
Expand All @@ -211,10 +211,12 @@ def prepare(configs: dict[str, dict[str, Any]]) -> None:


def prepare_cfg(config: dict[str, Any],
cfg_name: str, openwrt: OpenWrt,
cfg_name: str,
openwrt_path: str,
cloned_repos: dict[tuple[str, str], str],
global_files_path: str,
compiler: str):
openwrt = OpenWrt(openwrt_path)
logger.info("%s处理软件包...", cfg_name)
for pkg_name, pkg in config["extpackages"].items():
path = os.path.join(openwrt.path, "package", "cmzj_packages", pkg_name)
Expand Down

0 comments on commit cd4fb38

Please sign in to comment.