From 471650128626145a3f45c543eecb6e5be4f273dd Mon Sep 17 00:00:00 2001 From: kitsunyan Date: Sun, 18 Mar 2018 23:58:13 +0300 Subject: Add PGP keys importing --- src/common.nim | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/common.nim') diff --git a/src/common.nim b/src/common.nim index 23ef7f3..779dacb 100644 --- a/src/common.nim +++ b/src/common.nim @@ -237,6 +237,15 @@ proc obtainSrcInfo*(path: string): string = execProcess(bashCmd, ["-c", """cd "$2" && "$1" --printsrcinfo""", "bash", makePkgCmd, path], options = {}) +proc reloadPkgInfos*(config: Config, path: string, pkgInfos: seq[PackageInfo]): seq[PackageInfo] = + let srcInfo = obtainSrcInfo(path) + let res = parseSrcInfo(pkgInfos[0].repo, srcInfo, config.arch, + pkgInfos[0].gitUrl, pkgInfos[0].gitBranch, pkgInfos[0].gitCommit, pkgInfos[0].gitPath) + if res.len > 0: + res + else: + pkgInfos + proc obtainBuildPkgInfos*(config: Config, pacmanTargets: seq[FullPackageTarget[RpcPackageInfo]]): (seq[PackageInfo], seq[string]) = type -- cgit v1.2.3-70-g09d2