[PATCH 2/3] add option to enable/disable createrepo if desired [email protected] Sat, 26 Feb 2011 22:02:44 +0200 Newsgroups gmane.linux.rpm.yum Message-ID <[email protected]> From: Alexander Todorov <[email protected]> --- plugins/local/local.py | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/plugins/local/local.py b/plugins/local/local.py index 0d01e66..81ae2d7 100644 --- a/plugins/local/local.py +++ b/plugins/local/local.py @@ -80,6 +80,10 @@ def postdownload_hook(conduit): _reposetup(conduit) def _rebuild(conduit, done=None): + enabled = conduit.confBool('createrepo', 'enabled', default=True) + if not enabled: + return + cache_dir = conduit.confString('createrepo', 'cachedir', default=None) checksum = conduit.confString('createrepo', 'checksum', default=None) -- 1.7.1