Skip to content

Commit

Permalink
修复错误
Browse files Browse the repository at this point in the history
  • Loading branch information
chenmozhijin committed Sep 22, 2024
1 parent 6c2cc27 commit c061793
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build_helper/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,12 @@ def build_image_builder(cfg: dict) -> None:

logger.info("打包kmods...")

kmods = []
kmods_path = os.path.join(paths.uploads, "kmods")
for root, _dirs, files in os.walk(os.path.join(openwrt.path, "bin")):
for file in files:
if file.startswith("kmod-") and file.endswith(".ipk"):
kmods.append(os.path.join(root, file)) # noqa: PERF401
uploader.add(f"kmods-{cfg['name']}", kmods, retention_days=1)
shutil.copy2(os.path.join(root, file), kmods_path)
uploader.add(f"kmods-{cfg['name']}", os.path.join(kmods_path, "*"), retention_days=1)

target, subtarget = openwrt.get_target()
if target is None or subtarget is None:
Expand Down

0 comments on commit c061793

Please sign in to comment.