From dddc6100229dc93fcbe69ddd91c9bc00dfc4941b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Sat, 24 Oct 2015 10:38:28 +0200 Subject: [PATCH] Add added and lastupdated dates --- cmd/fdroidcl/show.go | 2 ++ index.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/cmd/fdroidcl/show.go b/cmd/fdroidcl/show.go index c062cbe..3e5aaed 100644 --- a/cmd/fdroidcl/show.go +++ b/cmd/fdroidcl/show.go @@ -67,6 +67,8 @@ func printAppDetailed(app fdroidcl.App) { p("Package :", "%s", app.ID) p("Name :", "%s", app.Name) 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) diff --git a/index.go b/index.go index 858dffa..7b62ec7 100644 --- a/index.go +++ b/index.go @@ -31,6 +31,8 @@ type App struct { ID string `xml:"id"` Name string `xml:"name"` Summary string `xml:"summary"` + Added DateVal `xml:"added"` + Updated DateVal `xml:"lastupdated"` Icon string `xml:"icon"` Desc string `xml:"desc"` License string `xml:"license"`