aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkitsunyan2018-03-13 18:04:57 +0000
committerkitsunyan2018-03-13 18:04:57 +0000
commit635ad7f462419a48e199df698caf09225ca1a52d (patch)
tree1d3328784d0468e1878dacc50ac74d105786ccdb /src
parent7306b66419c8e3f1785f2bb22d6851c827f7b671 (diff)
Don't bisect AUR packages
Since .SRCINFO might be changed without version change, bisecting becomes not suitable for finding the commit. Some packagers forget to update pkgrel or even .SRCINFO making changes to PKGBUILD, so bisecting can do more harm than good.
Diffstat (limited to 'src')
-rw-r--r--src/common.nim12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/common.nim b/src/common.nim
index e17c802..8ef6dba 100644
--- a/src/common.nim
+++ b/src/common.nim
@@ -376,16 +376,8 @@ proc cloneRepo*(config: Config, basePackages: seq[PackageInfo]): (int, Option[st
let code = forkWait(() => execResult(gitCmd, "-C", repoPath,
"reset", "-q", "--hard", gitCommit.unsafeGet))
(code, none(string))
- elif aur: (block:
- let commit = bisectVersion(repoPath, config.debug, none(string),
- "srcinfo", basePackages[0].gitPath.get("."), basePackages[0].version)
-
- if commit.isSome:
- let code = forkWait(() => execResult(gitCmd, "-C", repoPath,
- "reset", "-q", "--hard", commit.unsafeGet))
- (code, none(string))
- else:
- (1, none(string)))
+ elif aur:
+ (0, none(string))
else:
(1, none(string))
else: