Browse Source

Revert "Support finding apps by partial package name"

This reverts commit da5f2b2fa4.
pull/8/head
Daniel Martí 11 years ago
parent
commit
99f4daacdc
  1. 19
      cmd/fdroidcl/show.go

19
cmd/fdroidcl/show.go

@ -30,23 +30,8 @@ func findApps(ids []string) []*fdroidcl.App {
} }
result := make([]*fdroidcl.App, len(ids)) result := make([]*fdroidcl.App, len(ids))
for i, id := range ids { for i, id := range ids {
app, e := apps[id] app, _ := apps[id]
if e { result[i] = app
result[i] = app
continue
}
var found *fdroidcl.App
for j := range index.Apps {
app = &index.Apps[j]
if strings.Contains(strings.ToLower(app.ID), id) {
if found != nil {
found = nil
break
}
found = app
}
}
result[i] = found
} }
return result return result
} }

Loading…
Cancel
Save