summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmar Takhar <amar@rtems.org>2012-07-16 02:07:06 -0400
committerAmar Takhar <amar@rtems.org>2012-07-16 02:07:06 -0400
commitbe159caabff813901c59bff76ebc0b35679b4136 (patch)
treeb85e4466b7493fa61e077e93ff232576ade330a5
parent86065572980f3a8635c18c3c60bf7b6902e132da (diff)
Change arch list to a set() in _find_installed_arch_bsps to avoid duplicate
values.
-rw-r--r--rtems.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rtems.py b/rtems.py
index 69b742f..1ea36c5 100644
--- a/rtems.py
+++ b/rtems.py
@@ -299,7 +299,7 @@ def _find_installed_archs(config, path, version):
else:
a = subprocess.check_output([config, '--list-format', '"%(arch)s"'])
a = a[:-1].replace('"', '')
- archs = a.split()
+ archs = set(a.split())
archs = ['%s-rtems4.11' %(x) for x in archs]
archs.sort()
return archs