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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Alexander Todorov <atodorov@xxxxxx>

---
 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

_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxx
http://lists.baseurl.org/mailman/listinfo/yum


[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux