Skip to content

Commit

Permalink
vsdownload: Filter packages based on their arch information
Browse files Browse the repository at this point in the history
  • Loading branch information
huangqinjin authored and mstorsjo committed Oct 9, 2024
1 parent f7e6662 commit b777c11
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vsdownload.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,13 @@ def matchPackageHostArch(p, host):
if "host" + a in id:
return a == host

for k in ["chip", "machineArch", "productArch"]:
a = p.get(k, "neutral").lower()
if a == "neutral":
continue
if a != host:
return False

return True

def printDepends(packages, target, constraints, indent, args):
Expand Down

0 comments on commit b777c11

Please sign in to comment.