FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 03-16-2011, 07:18 AM
Ales Kozumplik
 
Default 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, 0 insertions(+), 28 deletions(-)

diff --git a/src/pylorax/__init__.py b/src/pylorax/__init__.py
index d1b5890..6d67b66 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 b66f87c..54e1c5e 100644
--- a/src/pylorax/installtree.py
+++ b/src/pylorax/installtree.py
@@ -323,30 +323,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 = """<?xml version="1.0"?>
-<gconf>
- <entry name="accessibility" mtime="1176200664" type="bool" value="true">
- </entry>
- <entry name="at-spi-corba" mtime="1176200664" type="bool" value="true">
- </entry>
-</gconf>
-"""
-
- 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")
--
1.7.3.3

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

Thread Tools




All times are GMT. The time now is 05:30 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org