summary refs log tree commit diff
path: root/scripts/nix-channel.in
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2004-12-20 14:57:03 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2004-12-20 14:57:03 +0000
commit7eed57e784068ae6e2e9bf4409639067df467cd3 (patch)
tree9424c5e456887a896593bc63ddcf0dd7916ba0fd /scripts/nix-channel.in
parent96c3d8a61550545549dfa31c62e68d16f4e89c0c (diff)
downloadguix-7eed57e784068ae6e2e9bf4409639067df467cd3.tar.gz
* Sync with changed substitute mechanism.
* Accept the NarHash line.
* Clear substitutes in `nix-channel --update'.

Diffstat (limited to 'scripts/nix-channel.in')
-rwxr-xr-xscripts/nix-channel.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/nix-channel.in b/scripts/nix-channel.in
index 1733afceb3..3c99f454c6 100755
--- a/scripts/nix-channel.in
+++ b/scripts/nix-channel.in
@@ -53,6 +53,10 @@ sub addChannel {
 sub update {
     readChannels;
 
+    # Get rid of all the old substitutes.
+    system "@bindir@/nix-store --clear-substitutes";
+    die "cannot clear substitutes" if ($? != 0);
+
     # Pull cache manifests.
     foreach my $url (@channels) {
         print "pulling cache manifest from `$url'\n";