diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-12-20 14:57:03 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-12-20 14:57:03 +0000 |
commit | 7eed57e784068ae6e2e9bf4409639067df467cd3 (patch) | |
tree | 9424c5e456887a896593bc63ddcf0dd7916ba0fd /scripts/nix-channel.in | |
parent | 96c3d8a61550545549dfa31c62e68d16f4e89c0c (diff) |
* Sync with changed substitute mechanism.
* Accept the NarHash line.
* Clear substitutes in `nix-channel --update'.
Diffstat (limited to 'scripts/nix-channel.in')
-rwxr-xr-x | scripts/nix-channel.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/nix-channel.in b/scripts/nix-channel.in index 1733afceb..3c99f454c 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"; |