* 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.

svn path=/nixos/trunk/; revision=22601
This commit is contained in:
Eelco Dolstra 2010-07-14 14:18:27 +00:00
parent f0b647c326
commit f1dde44ac1

View File

@ -23,6 +23,7 @@ The operation is one of the following:
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 @@ while test "$#" -gt 0; do
--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 @@ if test -n "$pullManifest"; then
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