diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-13T21·12+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-13T21·12+0200 |
commit | 3bea429ae8190565978104db3dbbb5e1a53fc018 (patch) | |
tree | 480747e11f2af030700075e2ad6c6677cdc2f4f1 /scripts/nix-generate-patches.in | |
parent | fde819f2e22e0fb84dc6d8fc4602a00577137d0a (diff) |
Use $XDG_RUNTIME_DIR for temporary files
Diffstat (limited to 'scripts/nix-generate-patches.in')
-rwxr-xr-x | scripts/nix-generate-patches.in | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/nix-generate-patches.in b/scripts/nix-generate-patches.in index 969af916d8e6..0a29c0548c1f 100755 --- a/scripts/nix-generate-patches.in +++ b/scripts/nix-generate-patches.in @@ -1,9 +1,9 @@ #! @perl@ -w @perlFlags@ use strict; -use File::Temp qw(tempdir); use Nix::Manifest; use Nix::GeneratePatches; +use Nix::Utils; if (scalar @ARGV != 5) { print STDERR <<EOF; @@ -31,8 +31,7 @@ readManifest $srcManifest, \%srcNarFiles, \%srcPatches; my (%dstNarFiles, %dstLocalPaths, %dstPatches); readManifest $dstManifest, \%dstNarFiles, \%dstPatches; -my $tmpDir = tempdir("nix-generate-patches.XXXXXX", CLEANUP => 1, TMPDIR => 1) - or die "cannot create a temporary directory"; +my $tmpDir = mkTempDir("nix-generate-patches"); generatePatches \%srcNarFiles, \%dstNarFiles, \%srcPatches, \%dstPatches, $narPath, $patchesPath, $patchesURL, $tmpDir; |