OneClickInstallStandard.pm |
| Module for parsing One Click Install Standard http://en.opensuse.org/Standards/One_Click_Install |
|
|
This module has an unstable interface. |
Imports
StructuresGlobal Functions |
global
GetRepositoriesFromXML (string filename)
->
list <map <string, any> >
Converts XML file to a list of maps with all repositories described in the XML content.
Structure $[
"distversion" : "openSUSE Factory",
"url" : "full url of the repository (http://.../)",
"format" : "yast",
"recommended" : true,
"description" : "repository description",
"localized_description" : $[
"en_GB" : "repository description (localized to en_GB)",
...
],
"summary" : "repository summary",
"localized_summary" : $[
"en_GB" : "repository summary (localized to en_GB)",
...
],
"name" : "repository name",
"localized_name" : $[
"en_GB" : "repository name (localized to en_GB)",
...
],
"mirrors" : [
$[
"url" : "full url of the mirror (http://.../)",
"location" : "?",
"score" : number,
]
...
]
]
- Parameters:
-
filename
- Return value:
-