[PATCH 2/3] add option to enable/disable createrepo if desired

[email protected]
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.