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-8843e422b7e67cdfade3722c750eb25b3808d568.tar rpmtools-8843e422b7e67cdfade3722c750eb25b3808d568.tar.gz rpmtools-8843e422b7e67cdfade3722c750eb25b3808d568.tar.bz2 rpmtools-8843e422b7e67cdfade3722c750eb25b3808d568.tar.xz rpmtools-8843e422b7e67cdfade3722c750eb25b3808d568.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"; |