diff options
-rw-r--r-- | layman/makeconf.py | 2 | ||||
-rw-r--r-- | layman/updater.py | 11 |
2 files changed, 5 insertions, 8 deletions
diff --git a/layman/makeconf.py b/layman/makeconf.py index 5f18b63..9740072 100644 --- a/layman/makeconf.py +++ b/layman/makeconf.py @@ -281,7 +281,7 @@ class MakeConf: def content(self): ''' - Returns the content of the /var/layman/make.conf file. + Returns the content of the /var/lib/layman/make.conf file. ''' try: make_conf = codecs.open(self.path, 'r', 'utf-8') diff --git a/layman/updater.py b/layman/updater.py index 1108ea3..ba9a1b8 100644 --- a/layman/updater.py +++ b/layman/updater.py @@ -145,12 +145,9 @@ class Main(object): self.output.info(" Creating layman's make.conf file") # create layman's %(storage)s/make.conf # so portage won't error - try: - make_conf = fileopen(self.config['make_conf'], mode="w") - make_conf.write("# Layman's make.conf\n\n") - make_conf.close() - except Exception, error: - self.output.error(" layman-updater: Error creating make.conf:") - self.output.error(" %s" % error) + from layman.makeconf import MakeConf + maker = MakeConf(self.config, None) + maker.write() + |