commit:     1ea6a261a39e8bb6f5c9c6a5a55424b54fcddbf7
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sun Feb  8 03:38:18 2015 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Sun Feb  8 03:38:18 2015 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=1ea6a261

config_modules/reposconf/reposconf.py: Sort the overlays

---
 layman/config_modules/reposconf/reposconf.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/layman/config_modules/reposconf/reposconf.py 
b/layman/config_modules/reposconf/reposconf.py
index 5848796..8b678eb 100644
--- a/layman/config_modules/reposconf/reposconf.py
+++ b/layman/config_modules/reposconf/reposconf.py
@@ -40,7 +40,7 @@ from   layman.utils          import path
 class ConfigHandler:
 
     def __init__(self, config, overlays):
-        
+
         self.config = config
         self.output = config['output']
         self.overlays = overlays
@@ -58,7 +58,7 @@ class ConfigHandler:
         '''
         try:
             read_files = config.read(self.path)
-                
+
             if not read_files:
                 self.output.warn("Warning, not able to parse config file: 
%(path)s"\
                     % ({'path':self.path}))
@@ -161,7 +161,7 @@ class ConfigHandler:
                 # If the repos.conf is empty check to see if we can write
                 # all the overlays to the file.
                 if not self.repo_conf.sections():
-                    for i in self.overlays:
+                    for i in sorted(self.overlays):
                         if not i == delete:
                             self.add(self.overlays[i])
                 self.repo_conf.write(laymanconf)

Reply via email to