Put yum temp stuff in workdir
This commit is contained in:
parent
07b27a464f
commit
fba101d3fc
@ -1,3 +1,7 @@
|
||||
* Fri Feb 16 2007 Jesse Keating <jkeating@redhat.com>
|
||||
- Make use of anaconda's TMPDIR support
|
||||
- Put yum tempdirs in the workdir
|
||||
|
||||
* Thu Feb 15 2007 Jesse Keating <jkeating@redhat.com>
|
||||
- Various logging tweaks
|
||||
- Use -d flag in createrepo for sqlite blobs
|
||||
|
@ -1,8 +1,6 @@
|
||||
[main]
|
||||
cachedir=/tmp/fist
|
||||
#keepcache=0
|
||||
#debuglevel=2
|
||||
logfile=/var/log/yum.log
|
||||
pkgpolicy=newest
|
||||
distroverpkg=redhat-release
|
||||
tolerant=1
|
||||
|
@ -1,8 +1,6 @@
|
||||
[main]
|
||||
cachedir=/tmp/fist
|
||||
#keepcache=0
|
||||
#debuglevel=2
|
||||
logfile=/var/log/yum.log
|
||||
pkgpolicy=newest
|
||||
distroverpkg=redhat-release
|
||||
tolerant=1
|
||||
|
@ -1,8 +1,6 @@
|
||||
[main]
|
||||
cachedir=/tmp/fist
|
||||
#keepcache=0
|
||||
#debuglevel=2
|
||||
logfile=/var/log/yum.log
|
||||
pkgpolicy=newest
|
||||
distroverpkg=redhat-release
|
||||
tolerant=1
|
||||
|
@ -1,8 +1,6 @@
|
||||
[main]
|
||||
cachedir=/tmp/fist
|
||||
#keepcache=0
|
||||
#debuglevel=2
|
||||
logfile=/var/log/yum.log
|
||||
pkgpolicy=newest
|
||||
distroverpkg=redhat-release
|
||||
tolerant=1
|
||||
|
@ -1,8 +1,6 @@
|
||||
[main]
|
||||
cachedir=/tmp/fist
|
||||
#keepcache=0
|
||||
#debuglevel=2
|
||||
logfile=/var/log/yum.log
|
||||
pkgpolicy=newest
|
||||
distroverpkg=redhat-release
|
||||
tolerant=1
|
||||
|
@ -19,10 +19,16 @@ import sys
|
||||
|
||||
class Gather(yum.YumBase):
|
||||
def __init__(self, config, pkglist):
|
||||
self.workdir = os.path.join(config.get('default', 'destdir'),
|
||||
'work',
|
||||
config.get('default', 'flavor'),
|
||||
config.get('default', 'arch'))
|
||||
|
||||
# Create a yum object to use
|
||||
yum.YumBase.__init__(self)
|
||||
self.config = config
|
||||
self.doConfigSetup(fn=config.get('default', 'yumconf'), debuglevel=6, errorlevel=6, root="/tmp")
|
||||
self.doConfigSetup(fn=config.get('default', 'yumconf'), debuglevel=6, errorlevel=6, root=os.path.join(self.workdir, 'yumroot'))
|
||||
self.config.cachedir = os.path.join(self.workdir, 'yumcache')
|
||||
self.cleanMetadata() # clean metadata that might be in the cache from previous runs
|
||||
self.cleanSqlite() # clean metadata that might be in the cache from previous runs
|
||||
self.doRepoSetup()
|
||||
|
Loading…
Reference in New Issue
Block a user