about summary refs log tree commit diff
path: root/scripts/nix-channel.in
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-09-25T11·11+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-09-25T11·11+0000
commitd43565c3e837feea478aaa71bad7e0a92c1911f0 (patch)
tree9fc6ee0e6bbc083160daf6739f8c69d08977b29e /scripts/nix-channel.in
parent68ae953d8a492061bcda7c4d7bf2f5b9432f791c (diff)
* In `nix-channel --update', skip manifests that assume a Nix store at
  a different location than the user's.  This makes channels usable as
  a source deployment mechanism for people who install Nix under
  non-standard prefixes.  (NIX-57)

Diffstat (limited to 'scripts/nix-channel.in')
-rw-r--r--scripts/nix-channel.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/nix-channel.in b/scripts/nix-channel.in
index 19b012922bca..e3abc7ea5cbc 100644
--- a/scripts/nix-channel.in
+++ b/scripts/nix-channel.in
@@ -23,6 +23,7 @@ sub readChannels {
     open CHANNELS, "<$channelsList" or die "cannot open `$channelsList': $!";
     while (<CHANNELS>) {
         chomp;
+        next if /^\s*\#/;
         push @channels, $_;
     }
     close CHANNELS;
@@ -81,7 +82,7 @@ sub update {
     # Pull cache manifests.
     foreach my $url (@channels) {
         print "pulling cache manifest from `$url'\n";
-        system("@bindir@/nix-pull", "$url/MANIFEST") == 0
+        system("@bindir@/nix-pull", "--skip-wrong-store", "$url/MANIFEST") == 0
             or die "cannot pull cache manifest from `$url'";
     }