From b367c5b4a2a06dc68dc676a9561ab1b12870f5a6 Mon Sep 17 00:00:00 2001 From: relan Date: Mon, 18 Apr 2016 22:56:45 +0300 Subject: [PATCH] show: avoid CurApk() use This command should work without a connected device. But in this case we cannot check APK compatibility and thus cannot suggest any particular APK. --- cmd/fdroidcl/show.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/cmd/fdroidcl/show.go b/cmd/fdroidcl/show.go index 3e5aaed..708ce4d 100644 --- a/cmd/fdroidcl/show.go +++ b/cmd/fdroidcl/show.go @@ -69,13 +69,7 @@ func printAppDetailed(app fdroidcl.App) { p("Summary :", "%s", app.Summary) p("Added :", "%s", app.Added.String()) p("Last Updated :", "%s", app.Updated.String()) - cur := app.CurApk() - if cur != nil { - p("Current Version :", "%s (%d)", cur.VName, cur.VCode) - } else { - p("Current Version :", "(no version available)") - } - p("Upstream Version :", "%s (%d)", app.CVName, app.CVCode) + p("Version :", "%s (%d)", app.CVName, app.CVCode) p("License :", "%s", app.License) if app.Categs != nil { p("Categories :", "%s", strings.Join(app.Categs, ", "))