aboutsummaryrefslogtreecommitdiff
path: root/src/package.nim
diff options
context:
space:
mode:
authorkitsunyan2018-09-14 19:38:20 +0000
committerkitsunyan2018-09-14 19:38:20 +0000
commitc0dd5e7dedf996c78617e21a7ea6bd2e3553dbfb (patch)
tree79de1a4b1b85056142e01e1650ce6823e3cf0807 /src/package.nim
parent7109cbd68e541af13dcb258d8156ddf4c46735e7 (diff)
Display out-of-date flag date in package info
Diffstat (limited to 'src/package.nim')
-rw-r--r--src/package.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/package.nim b/src/package.nim
index 3e2c6f7..7ad89bd 100644
--- a/src/package.nim
+++ b/src/package.nim
@@ -31,6 +31,7 @@ type
maintainer*: Option[string]
firstSubmitted*: Option[int64]
lastModified*: Option[int64]
+ outOfDate*: Option[int64]
votes*: int
popularity*: float
gitUrl*: string
@@ -312,6 +313,7 @@ proc parseSrcInfoName(repo: string, name: string, baseIndex: int, baseCount: int
maintainer: info.map(i => i.maintainer).flatten,
firstSubmitted: info.map(i => i.firstSubmitted).flatten,
lastModified: info.map(i => i.lastModified).flatten,
+ outOfDate: info.map(i => i.outOfDate).flatten,
votes: info.map(i => i.votes).get(0),
popularity: info.map(i => i.popularity).get(0),
gitUrl: gitUrl, gitSubdir: gitSubdir) |