winfreed.py: sort packages by name before processing
authorAntonio Ospite <ao2@ao2.it>
Tue, 21 Oct 2014 13:33:17 +0000 (15:33 +0200)
committerAntonio Ospite <ao2@ao2.it>
Tue, 21 Oct 2014 13:33:17 +0000 (15:33 +0200)
winfreed.py

index ef96bc5..c49de16 100755 (executable)
@@ -49,7 +49,7 @@ def get_pkg(pkg_file):
 
 
 def process_all(path, cb):
-    listing = glob.glob(os.path.join(path, '*.ini'))
+    listing = sorted(glob.glob(os.path.join(path, '*.ini')))
     for pkg_file in listing:
         pkg = get_pkg(pkg_file)
         if not pkg: