[Yum] [PATCH 2/3] add option to enable/disable createrepo if desired
atodorov at otb.bg
atodorov at otb.bg
Sat Feb 26 20:02:44 UTC 2011
From: Alexander Todorov <atodorov at otb.bg>
---
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
More information about the Yum
mailing list