aboutsummaryrefslogtreecommitdiff
path: root/src/package.nim
diff options
context:
space:
mode:
authorkitsunyan2018-04-29 01:09:29 +0000
committerkitsunyan2018-04-29 01:09:29 +0000
commit097b72cb39df5b4b423ff71c7f3b27ed629572b5 (patch)
treef6b3f8ef71ecad827c69f13f3f8d381b47f3ce63 /src/package.nim
parent5d6e17e57a41071316dfa9a53cd23c85e85ce53e (diff)
Use git clone for dependency resolution instead of cgit requests
Diffstat (limited to 'src/package.nim')
-rw-r--r--src/package.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/package.nim b/src/package.nim
index 4d0fba6..50ea369 100644
--- a/src/package.nim
+++ b/src/package.nim
@@ -32,6 +32,8 @@ type
lastModified*: Option[int64]
votes*: int
popularity*: float
+ gitUrl*: string
+ gitSubdir*: Option[string]
PackageInfo* = object of RpcPackageInfo
baseIndex*: int
@@ -48,8 +50,6 @@ type
provides*: seq[PackageReference]
conflicts*: seq[PackageReference]
replaces*: seq[PackageReference]
- gitUrl*: string
- gitSubdir*: Option[string]
GitRepo* = tuple[
url: string,
@@ -281,8 +281,8 @@ proc parseSrcInfoName(repo: string, name: string, baseIndex: int, baseCount: int
depends: depends, makeDepends: makeDepends, checkDepends: checkDepends,
optional: optional, provides: provides, conflicts: conflicts, replaces: replaces,
maintainer: info.map(i => i.maintainer).flatten,
- firstSubmitted: info.map( i => i.firstSubmitted).flatten,
- lastModified: info.map( i => i.lastModified).flatten,
+ firstSubmitted: info.map(i => i.firstSubmitted).flatten,
+ lastModified: info.map(i => i.lastModified).flatten,
votes: info.map(i => i.votes).get(0),
popularity: info.map(i => i.popularity).get(0),
gitUrl: gitUrl, gitSubdir: gitSubdir) |