summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClark Williams <williams@redhat.com>2008-12-19 15:57:19 -0600
committerClark Williams <williams@redhat.com>2008-12-19 15:57:19 -0600
commitd0bbbdb28ab908e95437e7a2ca5b68cdb5634030 (patch)
tree81f161fc4d759fab7dce4fca7060bf7bddf081a0
parentb8455b3512dbe240c3e90aa0cae30c5db2af4121 (diff)
downloadmock-d0bbbdb28ab908e95437e7a2ca5b68cdb5634030.tar.gz
mock-d0bbbdb28ab908e95437e7a2ca5b68cdb5634030.tar.xz
mock-d0bbbdb28ab908e95437e7a2ca5b68cdb5634030.zip
added version key to config options; moved cache_topdir to /var/cache/mock; removed trailing slash from basedir
-rwxr-xr-xpy/mock.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/py/mock.py b/py/mock.py
index d04c859..f528efa 100755
--- a/py/mock.py
+++ b/py/mock.py
@@ -191,9 +191,10 @@ decorate(traceLog())
def setup_default_config_opts(config_opts, unprivUid):
"sets up default configuration."
# global
- config_opts['basedir'] = '/var/lib/mock/' # root name is automatically added to this
+ config_opts['version'] = __VERSION__
+ config_opts['basedir'] = '/var/lib/mock' # root name is automatically added to this
config_opts['resultdir'] = '%(basedir)s/%(root)s/result'
- config_opts['cache_topdir'] = '/var/lib/mock/cache'
+ config_opts['cache_topdir'] = '/var/cache/mock'
config_opts['clean'] = True
config_opts['chroothome'] = '/builddir'
config_opts['log_config_file'] = 'logging.ini'