From 99f4daacdc3918d1e15d320bcb6b0cdd7346b2db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Thu, 18 Jun 2015 18:27:47 +0200 Subject: [PATCH] Revert "Support finding apps by partial package name" This reverts commit da5f2b2fa441f649fc387b0e2bd8409c16aef71c. --- cmd/fdroidcl/show.go | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/cmd/fdroidcl/show.go b/cmd/fdroidcl/show.go index 10ede53..ecd85d5 100644 --- a/cmd/fdroidcl/show.go +++ b/cmd/fdroidcl/show.go @@ -30,23 +30,8 @@ func findApps(ids []string) []*fdroidcl.App { } result := make([]*fdroidcl.App, len(ids)) for i, id := range ids { - app, e := apps[id] - if e { - 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 + app, _ := apps[id] + result[i] = app } return result }