diff options
author | kitsunyan | 2018-09-14 19:38:20 +0000 |
---|---|---|
committer | kitsunyan | 2018-09-14 19:38:20 +0000 |
commit | c0dd5e7dedf996c78617e21a7ea6bd2e3553dbfb (patch) | |
tree | 79de1a4b1b85056142e01e1650ce6823e3cf0807 /src/aur.nim | |
parent | 7109cbd68e541af13dcb258d8156ddf4c46735e7 (diff) |
Display out-of-date flag date in package info
Diffstat (limited to 'src/aur.nim')
-rw-r--r-- | src/aur.nim | 3 |
1 files changed, 2 insertions, 1 deletions
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) |