Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ since the architecture/operating system mismatches.
By default, `nixpkgs-review` targets only the current system
(`--systems current`). You can also explicitly provide one or several systems to
target (`--systems "x86_64-linux aarch64-darwin"`). We also provide aliases for
the flag:
the flag, which can also be mixed with the system names.

| Alias | Transforms to |
| ---------------------------------------------------- | --------------------------------------------------------- |
Expand Down
19 changes: 9 additions & 10 deletions nixpkgs_review/review.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import argparse
import concurrent.futures
import fcntl
import itertools
import os
import subprocess
import sys
Expand Down Expand Up @@ -133,16 +134,14 @@ def __init__(
self.skip_packages = skip_packages
self.skip_packages_regex = skip_packages_regex
self.local_system = current_system()
match len(systems):
case 0:
msg = "Systems is empty"
raise NixpkgsReviewError(msg)
case 1:
self.systems = self._process_aliases_for_systems(
next(iter(systems)).lower()
)
case _:
self.systems = set(systems)
if not systems:
msg = "Systems is empty"
raise NixpkgsReviewError(msg)
self.systems = set(
itertools.chain(
*[self._process_aliases_for_systems(s.lower()) for s in systems]
)
)
self.allow = allow
self.sandbox = sandbox
self.build_graph = build_graph
Expand Down