aboutsummaryrefslogtreecommitdiffstats
path: root/build_archive
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-09-15 10:55:17 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-09-15 10:55:17 +0000
commitb6898a91bf508a10db8682c1e07666893a069c06 (patch)
treede2ea45e9718fd8a4db5af3ca6e6d4c5db9adc18 /build_archive
parentcae24bfca78cf360a9a85f0aa97436ce810d4da0 (diff)
downloadrpmtools-b6898a91bf508a10db8682c1e07666893a069c06.tar
rpmtools-b6898a91bf508a10db8682c1e07666893a069c06.tar.gz
rpmtools-b6898a91bf508a10db8682c1e07666893a069c06.tar.bz2
rpmtools-b6898a91bf508a10db8682c1e07666893a069c06.tar.xz
rpmtools-b6898a91bf508a10db8682c1e07666893a069c06.zip
use TMPDIR if availableodysseyOdyssey-rc1
Diffstat (limited to 'build_archive')
-rwxr-xr-xbuild_archive3
1 files changed, 2 insertions, 1 deletions
diff --git a/build_archive b/build_archive
index ae8bcf0..6da6fae 100755
--- a/build_archive
+++ b/build_archive
@@ -49,7 +49,8 @@
#+use strict qw(subs vars refs);
#- tempory file used for building.
-my $tmpz = "/tmp/tmp.z.$$";
+my $tmpdir = $ENV{TMPDIR} || "/tmp";
+my $tmpz = "$tmpdir/tmp.z.$$";
sub toc_line {
my ($file, $data) = @_;