summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Wesp <n.wesp@phytec.de>2018-07-27 16:03:50 +0200
committerStefan Müller-Klieser <s.mueller-klieser@phytec.de>2018-07-27 16:11:50 +0200
commitd3a35f2e66155bb0637a29e3bdd94aee3e97819c (patch)
treecee8f7da3f0a45357dea356e04337e4bf4c5afa9
parent537e606e67ab3c1288add045d6fa4b3c0a77a5d5 (diff)
downloadmeta-phytec-d3a35f2e66155bb0637a29e3bdd94aee3e97819c.tar.bz2
meta-phytec-d3a35f2e66155bb0637a29e3bdd94aee3e97819c.zip
scripts: phylib.py: Sort list of supported_builds
Right now we get a list with more than 50 machines, which is not sorted alphabetically, if we start the phyLinux script like: ./phyLinux init --dev -p master It could be easier to find a machine within the list, if the list is sorted. To be independent of using a manifest file or not, the sort function has to be called in the function 'release_fallback' and 'set_manifest'. Only one of these two functions will create a list, so we have to add a sort in both functions. Signed-off-by: Norbert Wesp <n.wesp@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
-rw-r--r--scripts/phylib.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/phylib.py b/scripts/phylib.py
index 90f79ce..c2906e5 100644
--- a/scripts/phylib.py
+++ b/scripts/phylib.py
@@ -184,6 +184,8 @@ class BoardSupportPackage(object):
distro = var[1]
self.supported_builds.append((x, target, distro))
+ self.supported_builds.sort()
+
def set_manifest(self, manifest_abs_path):
self.xml = manifest_abs_path
root = ET.parse(self.xml).getroot()
@@ -203,6 +205,8 @@ class BoardSupportPackage(object):
else:
setattr(self, key, release_info[key])
+ self.supported_builds.sort()
+
# allow capitalization for soc in manifest
self.soc = self.soc.lower()