aboutsummaryrefslogtreecommitdiff
path: root/lib/bisect.nim
diff options
context:
space:
mode:
authorkitsunyan2019-12-20 04:35:07 +0000
committerkitsunyan2019-12-20 04:35:07 +0000
commit90d4c4be3bc15b2f594a0046c07b6f8654659ad5 (patch)
tree89a79ffa58b086e5211473bb8633f5344e39000f /lib/bisect.nim
parenta25e544b717edab821779b4e7d978e8bf24debcb (diff)
Add Nim 1.0 support
Diffstat (limited to 'lib/bisect.nim')
-rw-r--r--lib/bisect.nim5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bisect.nim b/lib/bisect.nim
index ea4063c..3dad8b2 100644
--- a/lib/bisect.nim
+++ b/lib/bisect.nim
@@ -1,4 +1,5 @@
-import future, osproc, strutils
+import
+ osproc, strutils
{.passL: "-lalpm".}
@@ -6,7 +7,7 @@ proc vercmp(a: cstring, b: cstring): cint
{.cdecl, importc: "alpm_pkg_vercmp".}
proc getSourceVersion(relativePath: string): seq[string] =
- let lines = execProcess("/bin/bash", ["-c",
+ let lines = execProcess("/bin/bash", "", ["-c",
"""source "$1/PKGBUILD" && echo "$epoch" && echo "$pkgver" && echo "$pkgrel"""",
"bash", relativePath], options = {}).split("\n")
if lines.len == 4: