diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-09-15 10:55:17 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-09-15 10:55:17 +0000 |
commit | b6898a91bf508a10db8682c1e07666893a069c06 (patch) | |
tree | de2ea45e9718fd8a4db5af3ca6e6d4c5db9adc18 /genhdlist_cz2 | |
parent | cae24bfca78cf360a9a85f0aa97436ce810d4da0 (diff) | |
download | rpmtools-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 'genhdlist_cz2')
-rw-r--r-- | genhdlist_cz2 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/genhdlist_cz2 b/genhdlist_cz2 index 2a12858..513358c 100644 --- a/genhdlist_cz2 +++ b/genhdlist_cz2 @@ -26,7 +26,8 @@ $depslist = "$pwd/$depslist" if $depslist !~ m|^/|; $hdlist = "$pwd/$hdlist" if $hdlist !~ m|^/|; $dir = "$pwd/$dir" if $dir !~ m|^/|; -$work_dir = "/tmp/.build_hdlist"; +$tmpdir = $ENV{TMPDIR} || "/tmp"; +$work_dir = "$tmpdir/.build_hdlist"; -e $work_dir && !-d $work_dir and unlink($work_dir) || die "cannot use $work_dir as a working directory"; |