summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Generators/Cfg.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Server/Generators/Cfg.py')
-rw-r--r--src/lib/Server/Generators/Cfg.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/Server/Generators/Cfg.py b/src/lib/Server/Generators/Cfg.py
index 174879a34..7d3eba57a 100644
--- a/src/lib/Server/Generators/Cfg.py
+++ b/src/lib/Server/Generators/Cfg.py
@@ -32,7 +32,15 @@ class FileEntry(FileBacked):
most2 = [index for index in range(len(fields)) if getattr(other, fields[index])][0]
except IndexError:
most2 = 0
- return most1 - most2
+ if most1 == most2:
+ if self.name.split('.')[1][0] not in ['C', 'B']:
+ return 0
+ # need to tiebreak with numeric prio
+ prio1 = int(self.name.split('.')[1][1:2])
+ prio2 = int(other.name.split('.')[1][1:2])
+ return prio1 - prio2
+ else:
+ return most1 - most2
class ConfigFileEntry(object):
'''ConfigFileEntry is a repository entry for a single file, containing