diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2011-03-01 17:23:17 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2011-04-13 14:49:36 +0300 |
commit | 6331fec6e4be0c96517d37cbfbf8f2b1b2a8ad24 (patch) | |
tree | 969f55a19a0f4d4a7163a5ac64fdc764290e2b70 /scripts | |
parent | 76bc4429c2601d9525b7032fe7ff8f918a55caf8 (diff) | |
download | librpm-tizen-6331fec6e4be0c96517d37cbfbf8f2b1b2a8ad24.tar.gz librpm-tizen-6331fec6e4be0c96517d37cbfbf8f2b1b2a8ad24.tar.bz2 librpm-tizen-6331fec6e4be0c96517d37cbfbf8f2b1b2a8ad24.zip |
Honor $TMPDIR in various scripts.
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/check-buildroot | 2 | ||||
-rwxr-xr-x | scripts/tgpg | 4 | ||||
-rwxr-xr-x | scripts/vpkg-provides.sh | 8 |
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 |