From 1b5100b5ca93024061f72b5721e6734aa7944a8b Mon Sep 17 00:00:00 2001 From: Ales Kozumplik Date: Wed, 16 Mar 2011 09:14:31 +0100 Subject: [PATCH] Get rid of create_gconf(). We do what create_gconf is trying to achieve in get_config_files(). What's more, the files in crete_gconf() end up in the root directory where nothing can possibly use them because the root user's home is now /root. --- src/pylorax/__init__.py | 4 ---- src/pylorax/installtree.py | 24 ------------------------ 2 files changed, 28 deletions(-) diff --git a/src/pylorax/__init__.py b/src/pylorax/__init__.py index d1b58903..6d67b668 100644 --- a/src/pylorax/__init__.py +++ b/src/pylorax/__init__.py @@ -297,10 +297,6 @@ class Lorax(BaseLoraxClass): logger.info("running depmod") self.installtree.run_depmod(kernel) - # create gconf - logger.info("creating gconf files") - self.installtree.create_gconf() - # move repos logger.info("moving anaconda repos") self.installtree.move_repos() diff --git a/src/pylorax/installtree.py b/src/pylorax/installtree.py index d29b28ea..bdf284e6 100644 --- a/src/pylorax/installtree.py +++ b/src/pylorax/installtree.py @@ -351,30 +351,6 @@ class LoraxInstallTree(BaseLoraxClass): # move modules out of the tree shutil.move(moddir, self.workdir) - def create_gconf(self): - gconfdir = joinpaths(self.root, ".gconf/desktop") - os.makedirs(gconfdir) - touch(joinpaths(gconfdir, "%gconf.xml")) - - gconfdir = joinpaths(gconfdir, "gnome") - os.mkdir(gconfdir) - touch(joinpaths(gconfdir, "%gconf.xml")) - - gconfdir = joinpaths(gconfdir, "interface") - os.mkdir(gconfdir) - - text = """ - - - - - - -""" - - with open(joinpaths(gconfdir, "%gconf.xml"), "w") as fobj: - fobj.write(text) - def move_repos(self): src = joinpaths(self.root, "etc/yum.repos.d") dst = joinpaths(self.root, "etc/anaconda.repos.d")