about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-05-01T20·35-0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-05-01T20·35-0400
commite060c99447a445bbf1c527b8c712e3bf809ee694 (patch)
treedce67386a8f21257a6ca2cf1c443f8713d9af561
parente19fb7ebedabf5109379b80c5e42e89fa4437276 (diff)
Use mkpath instead of make_path
Perl <= 5.10 doesn't have make_path.  See
e.g. http://hydra.nixos.org/build/2493981.
-rwxr-xr-xscripts/nix-channel.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/nix-channel.in b/scripts/nix-channel.in
index 524ffa656451..8f0fbbaa5097 100755
--- a/scripts/nix-channel.in
+++ b/scripts/nix-channel.in
@@ -2,7 +2,7 @@
 
 use strict;
 use File::Basename;
-use File::Path qw(make_path);
+use File::Path qw(mkpath);
 use Nix::Config;
 
 my $manifestDir = $Nix::Config::manifestDir;
@@ -21,7 +21,7 @@ my $nixDefExpr = "$home/.nix-defexpr";
 # Figure out the name of the channels profile.
 my $userName = getpwuid($<) or die "cannot figure out user name";
 my $profile = "$Nix::Config::stateDir/profiles/per-user/$userName/channels";
-make_path(dirname $profile, mode => 0755);
+mkpath(dirname $profile, 0, 0755);
     
 my %channels;