Skip to content

Commit

Permalink
Fix sorting of updater names starting with Turkish letters.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gökçen Eraslan committed Sep 7, 2011
1 parent bcd9e19 commit ee32795
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/find-new-packages
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import os
import sys
import locale
import multiprocessing

import pisi
Expand Down Expand Up @@ -158,9 +159,12 @@ def main():

print LEGEND

# Get collate locale to sort updater names starts with unicode letters correctly
locale.setlocale(locale.LC_COLLATE, "")

# Dump updates.txt
with open("updates.txt", "w") as f:
for updater in sorted(updaters):
for updater in sorted(updaters, cmp=locale.strcoll):
sources = updaters[updater]
f.write("%s:\n" % updater)
for source in sorted(sources):
Expand Down

0 comments on commit ee32795

Please sign in to comment.