Skip to content

Commit 610e1e8

Browse files
committed
nixos-rebuild-ng: avoid copying closure when target_host matches build_host
1 parent 54671be commit 610e1e8

File tree

1 file changed

+1
-1
lines changed
  • pkgs/by-name/ni/nixos-rebuild-ng/src/nixos_rebuild

1 file changed

+1
-1
lines changed

pkgs/by-name/ni/nixos-rebuild-ng/src/nixos_rebuild/nix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def nix_copy(to_host: Remote, from_host: Remote) -> None:
224224
)
225225

226226
match (to_host, from_host):
227-
case (None, None):
227+
case (x, y) if x == y:
228228
return
229229
case (Remote(_) as host, None) | (None, Remote(_) as host):
230230
nix_copy_closure(host, to=bool(to_host))

0 commit comments

Comments
 (0)