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

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

 



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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux