diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-07-21T21·34+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-07-21T21·34+0000 |
commit | c7bdb76fe461e2335caeea01c16b39a2784fa506 (patch) | |
tree | 9202fd4f800c63ce16298bce068b654d77ed126c /scripts/nix-switch.in | |
parent | d5ee6f8700c7225a4ce34f6d92aae0d57bee3355 (diff) |
* Syntax fixes.
* When pushing, put the hash in the file name so that the client can verify (proof-carrying file names?).
Diffstat (limited to 'scripts/nix-switch.in')
-rwxr-xr-x | scripts/nix-switch.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/nix-switch.in b/scripts/nix-switch.in index 2ccb6b4e5786..ddaca4e227ad 100755 --- a/scripts/nix-switch.in +++ b/scripts/nix-switch.in @@ -15,11 +15,11 @@ $hash || die "no package hash specified"; my $linkdir = "@localstatedir@/nix/links"; # Build the specified package, and all its dependencies. -system "nix -ih $hash"; -if ($?) { die "`nix -ih' failed"; } +system "nix --install $hash"; +if ($?) { die "`nix --install' failed"; } -my $pkgdir = `nix -qph $hash`; -if ($?) { die "`nix -qph' failed"; } +my $pkgdir = `nix --query --list $hash`; +if ($?) { die "`nix --query --list' failed"; } chomp $pkgdir; # Figure out a generation number. |