aboutsummaryrefslogtreecommitdiffstats
path: root/gendistrib
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2004-04-21 09:17:23 +0000
committerFlorent Villard <warly@mandriva.com>2004-04-21 09:17:23 +0000
commit47d322ffcdcb7358fc4795f473887f54e30b7766 (patch)
tree4f5c8353c23d5b3125755734589b88cf997a2cbd /gendistrib
parent0186277d93ec7bfb7f240ef3225fb835298b40c9 (diff)
downloadrpmtools-47d322ffcdcb7358fc4795f473887f54e30b7766.tar
rpmtools-47d322ffcdcb7358fc4795f473887f54e30b7766.tar.gz
rpmtools-47d322ffcdcb7358fc4795f473887f54e30b7766.tar.bz2
rpmtools-47d322ffcdcb7358fc4795f473887f54e30b7766.tar.xz
rpmtools-47d322ffcdcb7358fc4795f473887f54e30b7766.zip
make $ENV{TMPDIR} the default cache location
Diffstat (limited to 'gendistrib')
-rwxr-xr-xgendistrib2
1 files changed, 1 insertions, 1 deletions
diff --git a/gendistrib b/gendistrib
index 5a4d8ec..ca852df 100755
--- a/gendistrib
+++ b/gendistrib
@@ -27,7 +27,7 @@ use Getopt::Long;
my $urpm = new URPM;
my ($noclean, $nohdlists, $nobasefiles, $nooutput, $dontdie, $nochkdep, $rootdistrib, @root, @hdlists) = (0, 0, 0, 0);
-my $headers_dir = (-d "$ENV{HOME}/tmp" ? "$ENV{HOME}/tmp" : $ENV{TMPDIR} || "/tmp") . "/.build_hdlist";
+my $headers_dir = (-d "$ENV{TMPDIR}" ? $ENV{TMPDIR} : -d "$ENV{HOME}/tmp" ? "$ENV{HOME}/tmp" : "/tmp") . "/.build_hdlist";
sub usage {
print <<EOF;