* In nix-pull/nix-channel, create the manifests directory if it

doesn't exist.  The Debian packages don't include the manifests
  directory, so nix-channel would silently skip doing a nix-pull,
  resulting in everything being built from source.  Thanks to Juan
  Pedro Bolívar Puente.
This commit is contained in:
Eelco Dolstra 2009-11-13 10:08:31 +00:00
parent 327a232c85
commit 3392d32e8b
3 changed files with 9 additions and 6 deletions

View file

@ -78,6 +78,9 @@ sub removeChannel {
sub update {
readChannels;
# Create the manifests directory if it doesn't exist.
mkdir "$stateDir/manifests", 0755 unless -e "$stateDir/manifests";
# Do we have write permission to the manifests directory? If not,
# then just skip pulling the manifest and just download the Nix
# expressions. If the user is a non-privileged user in a