Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
chenmozhijin committed Sep 16, 2024
1 parent 0dcd61a commit 675c5f1
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions build_helper/utils/openwrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,9 @@ def make_download(self, debug: bool = False) -> None:
if debug:
args.extend(["-j1", "V=s"])
else:
args.append("-j 16")
logger.debug("运行命令:%s", " ".join(args))
result = subprocess.run(args, cwd=self.path, capture_output=True, text=True)
if result.returncode != 0:
raise subprocess.CalledProcessError(result.returncode, result.args, result.stdout, result.stderr)
logger.debug("运行命令:%s成功\nstdout: %s\nstderr: %s", " ".join(args), result.stdout, result.stderr)
args.append("-j16")
logger.debug("运行命令:%s", " ".join(args))
subprocess.run(args, cwd=self.path, check=True)

def download_packages_source(self) -> None:
for i in range(2):
Expand Down

0 comments on commit 675c5f1

Please sign in to comment.