Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian Java (http://www.linux-archive.org/debian-java/)
-   -   Set cache base directory for repos added/edited in UI. (http://www.linux-archive.org/debian-java/342282-set-cache-base-directory-repos-added-edited-ui.html)

Radek Vykydal 03-16-2010 09:32 AM

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

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

Hans de Goede 03-16-2010 10:39 AM

Set cache base directory for repos added/edited in UI.
 
Ack.

On 03/16/2010 11:32 AM, Radek Vykydal wrote:

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


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


All times are GMT. The time now is 07:09 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.