From c0dd5e7dedf996c78617e21a7ea6bd2e3553dbfb Mon Sep 17 00:00:00 2001 From: kitsunyan Date: Fri, 14 Sep 2018 22:38:20 +0300 Subject: Display out-of-date flag date in package info --- src/aur.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/aur.nim') diff --git a/src/aur.nim b/src/aur.nim index d74d08a..5c138b4 100644 --- a/src/aur.nim +++ b/src/aur.nim @@ -29,13 +29,14 @@ proc parseRpcPackageInfo(obj: JsonNode, repo: string): Option[RpcPackageInfo] = let maintainer = if maintainerEmpty.len > 0: some(maintainerEmpty) else: none(string) let firstSubmitted = obj["FirstSubmitted"].getBiggestInt(0).optInt64 let lastModified = obj["LastModified"].getBiggestInt(0).optInt64 + let outOfDate = obj["OutOfDate"].getBiggestInt(0).optInt64 let votes = (int) obj["NumVotes"].getBiggestInt(0) let popularity = obj["Popularity"].getFloat(0) if base.len > 0 and name.len > 0: some(RpcPackageInfo(repo: repo, base: base, name: name, version: version, description: description, maintainer: maintainer, - firstSubmitted: firstSubmitted, lastModified: lastModified, + firstSubmitted: firstSubmitted, lastModified: lastModified, outOfDate: outOfDate, votes: votes, popularity: popularity, gitUrl: gitUrl(base), gitSubdir: none(string))) else: none(RpcPackageInfo) -- cgit v1.2.3-70-g09d2