File tree Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -355,7 +355,7 @@ since the architecture/operating system mismatches.
355355By default, ` nixpkgs-review ` targets only the current system
356356(` --systems current ` ). You can also explicitly provide one or several systems to
357357target (` --systems "x86_64-linux aarch64-darwin" ` ). We also provide aliases for
358- the flag:
358+ the flag, which can also be mixed with the system names.
359359
360360| Alias | Transforms to |
361361| ---------------------------------------------------- | --------------------------------------------------------- |
Original file line number Diff line number Diff line change 11import argparse
22import concurrent .futures
3+ import itertools
34import os
45import subprocess
56import sys
@@ -129,16 +130,10 @@ def __init__(
129130 self .skip_packages = skip_packages
130131 self .skip_packages_regex = skip_packages_regex
131132 self .local_system = current_system ()
132- match len (systems ):
133- case 0 :
134- msg = "Systems is empty"
135- raise NixpkgsReviewError (msg )
136- case 1 :
137- self .systems = self ._process_aliases_for_systems (
138- next (iter (systems )).lower ()
139- )
140- case _:
141- self .systems = set (systems )
133+ if not systems :
134+ msg = "Systems is empty"
135+ raise NixpkgsReviewError (msg )
136+ self .systems = set (itertools .chain (* [self ._process_aliases_for_systems (s .lower ()) for s in systems ]))
142137 self .allow = allow
143138 self .sandbox = sandbox
144139 self .build_graph = build_graph
You can’t perform that action at this time.
0 commit comments