chore: 修复某些情况下 maadeps-download.py 抛异常的问题

This commit is contained in:
zzyyyl
2023-03-08 23:31:47 +08:00
parent f6285e3f68
commit 83dfc8473d

View File

@@ -94,9 +94,10 @@ def retry_urlopen(*args, **kwargs):
def main():
target_triplet = detect_host_triplet()
if len(sys.argv) == 2:
target_triplet = sys.argv[1]
else:
target_triplet = detect_host_triplet()
print("about to download prebuilt dependency libraries for", target_triplet)
if len(sys.argv) == 1:
print(f"to specify another triplet, run `{sys.argv[0]} <target triplet>`")