summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/check-buildroot2
-rwxr-xr-xscripts/tgpg4
-rwxr-xr-xscripts/vpkg-provides.sh8
3 files changed, 7 insertions, 7 deletions
diff --git a/scripts/check-buildroot b/scripts/check-buildroot
index 7b2e6c2e3..0cfb34f39 100755
--- a/scripts/check-buildroot
+++ b/scripts/check-buildroot
@@ -22,7 +22,7 @@ if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then
exit 0
fi
-tmp=$(mktemp /tmp/cbr.XXXXXX)
+tmp=$(mktemp ${TMPDIR:-/tmp}/cbr.XXXXXX)
trap "rm -f $tmp" EXIT
find "$RPM_BUILD_ROOT" \! \( \
diff --git a/scripts/tgpg b/scripts/tgpg
index 21c1ffac0..238cffbb4 100755
--- a/scripts/tgpg
+++ b/scripts/tgpg
@@ -8,8 +8,8 @@ do
exit 1
fi
- plaintext=`mktemp /tmp/tgpg-$$.XXXXXX`
- detached=`mktemp /tmp/tgpg-$$.XXXXXX`
+ plaintext=`mktemp ${TMPDIR:-/tmp}/tgpg-$$.XXXXXX`
+ detached=`mktemp ${TMPDIR:-/tmp}/tgpg-$$.XXXXXX`
# --- Extract detached signature
rpm -qp -vv --qf '%{siggpg:armor}' $pkg > $detached
diff --git a/scripts/vpkg-provides.sh b/scripts/vpkg-provides.sh
index 78f24b82b..c15f080f1 100755
--- a/scripts/vpkg-provides.sh
+++ b/scripts/vpkg-provides.sh
@@ -232,7 +232,7 @@ fi
-provides_tmp=/tmp/provides.$$
+provides_tmp=${TMPDIR:-/tmp}/provides.$$
if test -f $provides_tmp ; then
echo "$provides_tmp already exists. Exiting."
exit 11
@@ -247,7 +247,7 @@ do
find $d -type f -print 2>/dev/null | grep -E -v \'$ignore_dirs\' | $find_provides >> $provides_tmp
done
-sum_tmp=/tmp/sum.$$
+sum_tmp=${TMPDIR:-/tmp}/sum.$$
if test -f $sum_tmp ; then
echo "$sum_tmp already exists. Exiting."
exit 11
@@ -347,13 +347,13 @@ cat <<_EIEIO_
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/ucb:/usr/bsd
export PATH
-sum_current_tmp=/tmp/rpm.sum.current.\$\$
+sum_current_tmp=\${TMPDIR:-/tmp}/rpm.sum.current.\$\$
if test -f \$sum_current_tmp ; then
echo "\$sum_current_tmp already exists. Exiting."
exit 11
fi
-sum_package_tmp=/tmp/rpm.sum.package.\$\$
+sum_package_tmp=\${TMPDIR:-/tmp}/rpm.sum.package.\$\$
if test -f \$sum_package_tmp ; then
echo "\$sum_package_tmp already exists. Exiting."
exit 11