diff options
author | Chris Lumens <clumens@redhat.com> | 2008-08-06 14:09:36 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2008-08-06 14:09:36 -0400 |
commit | 87e740b4b35d426eb856101954d922ebed37f842 (patch) | |
tree | b491a9efe2ad2658e8f79c1936c3c994aaa56286 /scripts | |
parent | 097c295f0d7c82d99f65663d0db4f35007c052aa (diff) | |
download | anaconda-87e740b4b35d426eb856101954d922ebed37f842.tar.gz anaconda-87e740b4b35d426eb856101954d922ebed37f842.tar.xz anaconda-87e740b4b35d426eb856101954d922ebed37f842.zip |
Use a temporary location for yum cache data (#457632).
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/buildinstall | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/buildinstall b/scripts/buildinstall index e2bfeb7dd..164bbe7db 100755 --- a/scripts/buildinstall +++ b/scripts/buildinstall @@ -116,9 +116,14 @@ if [ ! -d "$OUTPUT" ]; then mkdir -p $OUTPUT fi -yumconf=$(mktemp /tmp/yum.conf.XXXXXX) +BUILDINSTDIR=$(mktemp -d ${TMPDIR:-/tmp}/buildinstall.tree.XXXXXX) +TREEDIR=$(mktemp -d ${TMPDIR:-/tmp}/treedir.XXXXXX) +CACHEDIR=$(mktemp -d ${TMPDIR:-/tmp}/yumcache.XXXXXX) + +yumconf=$(mktemp ${TMPDIR:-/tmp}/yum.conf.XXXXXX) cat > $yumconf <<EOF [main] +cachedir=$CACHEDIR keepcache=0 gpgcheck=0 plugins=0 @@ -158,11 +163,6 @@ EOF let n++ done - - -BUILDINSTDIR=`mktemp -d ${TMPDIR:-/tmp}/buildinstall.tree.XXXXXX` -TREEDIR=`mktemp -d ${TMPDIR:-/tmp}/treedir.XXXXXX` - echo "Running buildinstall..." pushd $BUILDINSTDIR |