summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael E Brown <michael_e_brown@dell.com>2007-10-18 13:43:19 -0500
committerMichael E Brown <michael_e_brown@dell.com>2007-10-18 13:43:19 -0500
commitb5dc0cce4a41b993ed44e2217d0bb236be6ccc35 (patch)
treeb9001f247e821b9c57056c872a6a4f8ba3097e02
parentdf52677aa49d314559c3e6961d01ef4da3067ac5 (diff)
downloadmock-b5dc0cce4a41b993ed44e2217d0bb236be6ccc35.tar.gz
mock-b5dc0cce4a41b993ed44e2217d0bb236be6ccc35.tar.xz
mock-b5dc0cce4a41b993ed44e2217d0bb236be6ccc35.zip
remove obsolete opts. add caching options.
-rwxr-xr-xsrc/mock.py15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/mock.py b/src/mock.py
index b67dbe1..5046690 100755
--- a/src/mock.py
+++ b/src/mock.py
@@ -71,8 +71,6 @@ def command_parse():
help="do not clean chroot before building", default=True)
parser.add_option("--arch", action ="store", dest="arch",
default=None, help="target build arch")
- parser.add_option("--debug", action ="store_true", dest="debug",
- default=False, help="Output copious debugging information")
parser.add_option("--resultdir", action="store", type="string",
default=None, help="path for resulting files to be put")
parser.add_option("--statedir", action="store", type="string", default=None,
@@ -110,13 +108,9 @@ def setup_default_config_opts(config_opts):
# (global) caching-related config options
config_opts['cache_topdir'] = '/var/lib/mock/cache'
config_opts['enable_ccache'] = True
+ config_opts['ccache_opts'] = {'max_age_days': 15, 'max_cache_size': "32G"}
config_opts['enable_yum_cache'] = True
- config_opts['enable_root_cache'] = True
-
- # host commands
- config_opts['chroot'] = '/usr/sbin/chroot'
- config_opts['mount'] = '/bin/mount'
- config_opts['umount'] = '/bin/umount'
+ config_opts['yum_cache_opts'] = {'max_age_days': 15}
# dependent on guest OS
config_opts['use_host_resolv'] = True
@@ -139,10 +133,6 @@ def set_config_opts_per_cmdline(config_opts, options):
config_opts['target_arch'] = options.arch
if not options.clean:
config_opts['clean'] = options.clean
- if options.debug:
- config_opts['debug'] = options.debug
- log.setLevel(logging.DEBUG)
- #log.setFormatter("detailed")
if options.verbose:
config_opts['verbose'] = options.verbose
@@ -234,7 +224,6 @@ def main():
for hdr in mock.util.yieldSrpmHeaders(srpms): pass
chroot.init()
- # TODO: test this (oh, implement it first, actually)
chroot.installSrpmDeps(srpms)
else: