diff options
author | kitsunyan | 2018-03-18 20:58:13 +0000 |
---|---|---|
committer | kitsunyan | 2018-03-18 20:58:13 +0000 |
commit | 471650128626145a3f45c543eecb6e5be4f273dd (patch) | |
tree | 3b020a6ddd72b72f91b66eaeb2b99cc00a5cc975 /src/package.nim | |
parent | 75b2f60bf15a9d49859b262a47da30ec70614a5e (diff) |
Add PGP keys importing
Diffstat (limited to 'src/package.nim')
-rw-r--r-- | src/package.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/package.nim b/src/package.nim index 5683d5f..32bc801 100644 --- a/src/package.nim +++ b/src/package.nim @@ -41,6 +41,7 @@ type url*: Option[string] licenses*: seq[string] groups*: seq[string] + pgpKeys*: seq[string] depends*: seq[PackageReference] makeDepends*: seq[PackageReference] checkDepends*: seq[PackageReference] @@ -260,6 +261,7 @@ proc parseSrcInfoName(repo: string, name: string, baseIndex: int, baseCount: int let url = collect("url").optLast let licenses = collect("license") let groups = collect("groups") + let pgpKeys = collect("validpgpkeys") let depends = collectArch("depends") let makeDepends = collectArch("makedepends").filterReferences(depends) @@ -273,7 +275,7 @@ proc parseSrcInfoName(repo: string, name: string, baseIndex: int, baseCount: int lc[PackageInfo(baseIndex: baseIndex, baseCount: baseCount, repo: repo, base: b, name: name, version: v, description: description, - archs: archs, url: url, licenses: licenses, groups: groups, + archs: archs, url: url, licenses: licenses, groups: groups, pgpKeys: pgpKeys, depends: depends, makeDepends: makeDepends, checkDepends: checkDepends, optional: optional, provides: provides, conflicts: conflicts, replaces: replaces, maintainer: info.map(i => i.maintainer).flatten, |