comps-wrapper: Sort langpacks by name
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
e5dc69cd41
commit
39c3f42f77
@ -261,7 +261,7 @@ class CompsWrapper(object):
|
||||
lang_node = doc.createElement("langpacks")
|
||||
msg_elem.appendChild(lang_node)
|
||||
|
||||
for langpack in langpacks:
|
||||
for langpack in sorted(langpacks, key=lambda x: x['name']):
|
||||
match_node = doc.createElement("match")
|
||||
match_node.setAttribute("name", langpack["name"])
|
||||
match_node.setAttribute("install", langpack["install"])
|
||||
|
2
tests/fixtures/comps-env.xml
vendored
2
tests/fixtures/comps-env.xml
vendored
@ -104,6 +104,7 @@
|
||||
<match install="autocorr-%s" name="autocorr-en"/>
|
||||
<match install="calligra-l10n-%s" name="calligra-core"/>
|
||||
<match install="childsplay-alphabet_sounds_%s" name="childsplay"/>
|
||||
<match install="dummy-release-notes-%s" name="dummy-release-notes"/>
|
||||
<match install="eclipse-nls-%s" name="eclipse-platform"/>
|
||||
<match install="firefox-langpack-%s" name="firefox"/>
|
||||
<match install="gcompris-sound-%s" name="gcompris"/>
|
||||
@ -120,6 +121,5 @@
|
||||
<match install="openoffice.org-langpack-%s" name="openoffice.org-core"/>
|
||||
<match install="tesseract-langpack-%s" name="tesseract"/>
|
||||
<match install="tkgate-%s" name="tkgate"/>
|
||||
<match install="dummy-release-notes-%s" name="dummy-release-notes"/>
|
||||
</langpacks>
|
||||
</comps>
|
||||
|
2
tests/fixtures/comps-formatted.xml
vendored
2
tests/fixtures/comps-formatted.xml
vendored
@ -118,6 +118,7 @@
|
||||
<match install="autocorr-%s" name="autocorr-en"/>
|
||||
<match install="calligra-l10n-%s" name="calligra-core"/>
|
||||
<match install="childsplay-alphabet_sounds_%s" name="childsplay"/>
|
||||
<match install="dummy-release-notes-%s" name="dummy-release-notes"/>
|
||||
<match install="eclipse-nls-%s" name="eclipse-platform"/>
|
||||
<match install="firefox-langpack-%s" name="firefox"/>
|
||||
<match install="gcompris-sound-%s" name="gcompris"/>
|
||||
@ -134,6 +135,5 @@
|
||||
<match install="openoffice.org-langpack-%s" name="openoffice.org-core"/>
|
||||
<match install="tesseract-langpack-%s" name="tesseract"/>
|
||||
<match install="tkgate-%s" name="tkgate"/>
|
||||
<match install="dummy-release-notes-%s" name="dummy-release-notes"/>
|
||||
</langpacks>
|
||||
</comps>
|
||||
|
2
tests/fixtures/comps-group.xml
vendored
2
tests/fixtures/comps-group.xml
vendored
@ -84,6 +84,7 @@
|
||||
<match install="autocorr-%s" name="autocorr-en"/>
|
||||
<match install="calligra-l10n-%s" name="calligra-core"/>
|
||||
<match install="childsplay-alphabet_sounds_%s" name="childsplay"/>
|
||||
<match install="dummy-release-notes-%s" name="dummy-release-notes"/>
|
||||
<match install="eclipse-nls-%s" name="eclipse-platform"/>
|
||||
<match install="firefox-langpack-%s" name="firefox"/>
|
||||
<match install="gcompris-sound-%s" name="gcompris"/>
|
||||
@ -100,6 +101,5 @@
|
||||
<match install="openoffice.org-langpack-%s" name="openoffice.org-core"/>
|
||||
<match install="tesseract-langpack-%s" name="tesseract"/>
|
||||
<match install="tkgate-%s" name="tkgate"/>
|
||||
<match install="dummy-release-notes-%s" name="dummy-release-notes"/>
|
||||
</langpacks>
|
||||
</comps>
|
||||
|
Loading…
Reference in New Issue
Block a user