1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-08 19:23:54 +02:00

* Sync with changed substitute mechanism.

* Accept the NarHash line.
* Clear substitutes in `nix-channel --update'.
This commit is contained in:
Eelco Dolstra 2004-12-20 14:57:03 +00:00
parent 96c3d8a615
commit 7eed57e784
3 changed files with 11 additions and 6 deletions

View file

@ -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";