summaryrefslogtreecommitdiffstats
path: root/gdb-xds.go
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2018-02-23 21:16:39 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2018-02-23 21:17:11 +0100
commit0cd3a46a918d38ac671dd55600fc90fef81ba90f (patch)
treebc0e203899eebf7d6dd8842d29912da7e2361c30 /gdb-xds.go
parentcd2ac6e38a52aaa1db62597bd95f6f04b7f01409 (diff)
Fixed list of installed SDKsv1.0.1
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'gdb-xds.go')
-rw-r--r--gdb-xds.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb-xds.go b/gdb-xds.go
index f1216ce..9dfb717 100644
--- a/gdb-xds.go
+++ b/gdb-xds.go
@@ -440,7 +440,9 @@ func (g *GdbXds) printProjectsList() (int, error) {
fmt.Fprintln(writer, "\nList of installed cross SDKs (use: export XDS_SDK_ID=<< ID >>):")
fmt.Fprintln(writer, "ID \t Name")
for _, s := range sdks {
- fmt.Fprintf(writer, " %s \t %s\n", s.ID, s.Name)
+ if s.Status == xaapiv1.SdkStatusInstalled {
+ fmt.Fprintf(writer, " %s \t %s\n", s.ID, s.Name)
+ }
}
if len(g.projects) > 0 && len(sdks) > 0 {