about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-10-15T10·34+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-10-15T10·34+0000
commit5fc71276430e8e6a4588fa54da692f81d5ada585 (patch)
treeb55659d23d02667ffe368ccb40fa053f542cb333
parentc190f051ac34b2df51402bf593150de97f491d86 (diff)
* Keep sources (derivation expression) by default, `--no-source' to
  override.

-rwxr-xr-xscripts/nix-switch.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/nix-switch.in b/scripts/nix-switch.in
index 85fa3ac44ad9..9fcb598e30a3 100755
--- a/scripts/nix-switch.in
+++ b/scripts/nix-switch.in
@@ -3,7 +3,7 @@
 use strict;
 
 my $keep = 0;
-my $sourceroot = 0;
+my $sourceroot = 1;
 my $name = "current";
 my $srcid;
 
@@ -11,7 +11,7 @@ my $argnr = 0;
 while ($argnr < scalar @ARGV) {
     my $arg = $ARGV[$argnr++];
     if ($arg eq "--keep") { $keep = 1; }
-    elsif ($arg eq "--source-root") { $sourceroot = 1; }
+    elsif ($arg eq "--no-source") { $sourceroot = 0; }
     elsif ($arg eq "--name") { $name = $ARGV[$argnr++]; }
     elsif ($arg =~ /^\//) { $srcid = $arg; }
     else { die "unknown argument `$arg'" };