aboutsummaryrefslogtreecommitdiff
path: root/src/feature/syncinstall.nim
diff options
context:
space:
mode:
authorkitsunyan2018-06-09 21:03:03 +0000
committerkitsunyan2018-06-09 21:03:03 +0000
commit7accdb6dab38f0ecb49669b7ddc04dc4f5facd14 (patch)
tree3bb6dd6ce685551015eb64d802ee737ded48eef5 /src/feature/syncinstall.nim
parent0b6c3e6732c5c0d5b6613d2fe450c3b7760c0827 (diff)
Allow to ignore arch in PKGBUILD
Diffstat (limited to 'src/feature/syncinstall.nim')
-rw-r--r--src/feature/syncinstall.nim11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/feature/syncinstall.nim b/src/feature/syncinstall.nim
index 7b5bd5d..137d095 100644
--- a/src/feature/syncinstall.nim
+++ b/src/feature/syncinstall.nim
@@ -430,12 +430,13 @@ proc buildLoop(config: Config, pkgInfos: seq[PackageInfo], skipDeps: bool,
removeDirQuiet(buildPath & "src")
let optional: seq[tuple[arg: string, cond: bool]] = @[
- ("-e", noextract),
- ("-m", not config.color),
- ("-d", skipDeps)
+ ("--noextract", noextract),
+ ("--nocolor", not config.color),
+ ("--ignorearch", config.ignoreArch),
+ ("--nodeps", skipDeps)
]
- execResult(@[makepkgCmd, "--config", workConfFile, "-f"] &
+ execResult(@[makepkgCmd, "--config", workConfFile, "--force"] &
optional.filter(o => o.cond).map(o => o.arg)))
discard unlink(workConfFile)
@@ -550,7 +551,7 @@ proc installGroupFromSources(config: Config, commonArgs: seq[Argument],
let (buildResults, buildCode) = buildNext(0, nil)
proc formatArchiveFile(pkgInfo: PackageInfo, ext: string): string =
- let arch = if config.arch in pkgInfo.archs: config.arch else: "any"
+ let arch = if pkgInfo.archs.len > 0: config.arch else: "any"
config.tmpRootInitial & "/" & pkgInfo.name & "-" & pkgInfo.version & "-" & arch & ext
let allFiles = lc[(r.name, formatArchiveFile(r.pkgInfo, br.ext)) |