setup: fix setup fail for wlan-ap

Signed-off-by: Jianhui Zhao <jianhui.zhao@gl-inet.com>
This commit is contained in:
Jianhui Zhao 2022-05-24 17:47:54 +08:00
parent 34774a1a41
commit e0305ec114

View File

@ -72,7 +72,7 @@ def wlan_ap_reset_tree():
run(["rm", "-rf", "openwrt"]) run(["rm", "-rf", "openwrt"])
run(["git", "checkout", config["branch"]], check=True) run(["git", "checkout", config["branch"]], check=True)
run(["git", "reset", "--hard", config.get("revision", config["branch"])], check=True) run(["git", "reset", "--hard", config.get("revision", config["branch"])], check=True)
if not config["next"]: if not config.get("next"):
run(["rm", "backports/0021-build-create-APK-files-parrallel-to-IPK.patch"], check=True) run(["rm", "backports/0021-build-create-APK-files-parrallel-to-IPK.patch"], check=True)
run(["rm", "backports/0025-apk-backport-package.patch"], check=True) run(["rm", "backports/0025-apk-backport-package.patch"], check=True)
run(["./setup.py", "--setup"]) run(["./setup.py", "--setup"])