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

[PATCH] Set cache base directory for repos added/edited in UI.



Without the setting, directories are created in rootfs of / which can cause
running out of memory (e.g. for CD/DVD install in 512 MB virtual machine
after installing of 800 packages).
---
 iw/task_gui.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/iw/task_gui.py b/iw/task_gui.py
index 2fa916e..90faa30 100644
--- a/iw/task_gui.py
+++ b/iw/task_gui.py
@@ -363,6 +363,9 @@ class RepoEditor:
                 newRepoObj = AnacondaYumRepo(reponame.replace(" ", ""))
                 removeOld = False
 
+            # corresponds to self.repos.setCacheDir in AnacondaYum.doConfigSetup
+            newRepoObj.basecachedir = self.anaconda.backend.ayum.conf.cachedir
+
             type = self.typeComboBox.get_active()
             if not applyFuncs[type](newRepoObj) or not self._addAndEnableRepo(newRepoObj) or not \
                    setupRepo(self.anaconda, newRepoObj):
-- 
1.6.0.6


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