diff options
author | 2009-10-12 22:18:39 +0200 | |
---|---|---|
committer | 2009-10-12 22:18:39 +0200 | |
commit | 2e362cc335f5587a8ba73288631352418d134d40 (patch) | |
tree | 24b627997dfbd76030937e4adc951062489c6d39 | |
parent | Add note on the repository location to the DTD and XSL files (diff) | |
download | repositories-xml-format-2e362cc335f5587a8ba73288631352418d134d40.tar.gz repositories-xml-format-2e362cc335f5587a8ba73288631352418d134d40.tar.bz2 repositories-xml-format-2e362cc335f5587a8ba73288631352418d134d40.zip |
Sort repos for repositories.xml
-rwxr-xr-x | write-repositories-xml.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/write-repositories-xml.py b/write-repositories-xml.py index 8db3a08..02a01bd 100755 --- a/write-repositories-xml.py +++ b/write-repositories-xml.py @@ -109,6 +109,10 @@ for overlay in overlays: # Transform 'overlays' tag overlays.tag = 'repositories' +# Sort overlays +overlays[:] = sorted(overlays[:], key=lambda x: x.find('name').text.lower()) + + # Extend by format version overlays.attrib['version'] = '1.0' |