* Don't do a chdir to $tmpDir. It's not necessary, and Windows doesn't

support deleting the current directory.
This commit is contained in:
Eelco Dolstra 2010-02-02 15:29:18 +00:00
parent 4bbbe25802
commit e839802720
1 changed files with 0 additions and 2 deletions

View File

@ -85,8 +85,6 @@ my $targetPath = $ARGV[1];
my $tmpDir = tempdir("nix-download.XXXXXX", CLEANUP => 1, TMPDIR => 1)
or die "cannot create a temporary directory";
chdir $tmpDir or die "cannot change to `$tmpDir': $!";
my $tmpNar = "$tmpDir/nar";
my $tmpNar2 = "$tmpDir/nar2";