Author: eelco
Date: Wed Jul 14 14:18:27 2010
New Revision: 22601
URL: https://svn.nixos.org/websvn/nix/?rev=22601&sc=1

Log:
* Added an action `nixos-rebuild pull' to just pull the Nixpkgs
  channel manifest and exit.  Useful if you don't want to use
  nix-channel.

Modified:
   nixos/trunk/modules/installer/tools/nixos-rebuild.sh

Modified: nixos/trunk/modules/installer/tools/nixos-rebuild.sh
==============================================================================
--- nixos/trunk/modules/installer/tools/nixos-rebuild.sh        Wed Jul 14 
12:58:38 2010        (r22600)
+++ nixos/trunk/modules/installer/tools/nixos-rebuild.sh        Wed Jul 14 
14:18:27 2010        (r22601)
@@ -23,6 +23,7 @@
   build-vm: build a virtual machine containing the configuration
             (useful for testing)
   dry-run:  just show what store paths would be built/downloaded
+  pull:     just pull the Nixpkgs channel manifest and exit
 
 Options:
 
@@ -63,7 +64,7 @@
       --help)
         showSyntax
       ;;
-      switch|boot|test|build|dry-run|build-vm)
+      switch|boot|test|build|dry-run|build-vm|pull)
         action="$i"
       ;;
       --install-grub)
@@ -142,6 +143,8 @@
     done
 fi
 
+if [ "$action" = pull ]; then exit 0; fi 
+
 
 # First build Nix, since NixOS may require a newer version than the
 # current one.  Of course, the same goes for Nixpkgs, but Nixpkgs is
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to