From 635ad7f462419a48e199df698caf09225ca1a52d Mon Sep 17 00:00:00 2001 From: kitsunyan Date: Tue, 13 Mar 2018 21:04:57 +0300 Subject: 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. --- src/common.nim | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src') 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: -- cgit v1.2.3-70-g09d2