Merge lp:~sergiusens/goget-ubuntu-touch/properDeviceFiltering into lp:goget-ubuntu-touch

Proposed by Sergio Schvezov
Status: Merged
Approved by: John Lenton
Approved revision: 174
Merged at revision: 175
Proposed branch: lp:~sergiusens/goget-ubuntu-touch/properDeviceFiltering
Merge into: lp:goget-ubuntu-touch
Diff against target: 14 lines (+4/-0)
1 file modified
ubuntu-device-flash/query.go (+4/-0)
To merge this branch: bzr merge lp:~sergiusens/goget-ubuntu-touch/properDeviceFiltering
Reviewer Review Type Date Requested Status
John Lenton (community) Approve
Review via email: mp+260646@code.launchpad.net

Commit message

Only list channels related to the device

To post a comment you must log in.
Revision history for this message
John Lenton (chipaca) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ubuntu-device-flash/query.go'
2--- ubuntu-device-flash/query.go 2014-11-19 15:54:36 +0000
3+++ ubuntu-device-flash/query.go 2015-05-30 13:40:39 +0000
4@@ -84,6 +84,10 @@
5 }
6
7 for k, v := range channels {
8+ if _, ok := v.Devices[queryCmd.Device]; !ok {
9+ continue
10+ }
11+
12 if !v.Hidden {
13 if v.Alias != "" {
14 fmt.Printf("%s (alias to %s)\n", k, v.Alias)

Subscribers

People subscribed via source and target branches