From 3bea429ae8190565978104db3dbbb5e1a53fc018 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 13 Aug 2014 23:12:57 +0200 Subject: Use $XDG_RUNTIME_DIR for temporary files --- scripts/nix-generate-patches.in | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'scripts/nix-generate-patches.in') diff --git a/scripts/nix-generate-patches.in b/scripts/nix-generate-patches.in index 969af916d..0a29c0548 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 < 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; -- cgit v1.2.3