From 90d4c4be3bc15b2f594a0046c07b6f8654659ad5 Mon Sep 17 00:00:00 2001 From: kitsunyan Date: Fri, 20 Dec 2019 07:35:07 +0300 Subject: Add Nim 1.0 support --- src/feature/syncsource.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/feature/syncsource.nim') diff --git a/src/feature/syncsource.nim b/src/feature/syncsource.nim index b080aff..c050e6a 100644 --- a/src/feature/syncsource.nim +++ b/src/feature/syncsource.nim @@ -1,5 +1,5 @@ import - future, options, os, posix, sequtils, strutils, tables, + options, os, posix, sequtils, strutils, sugar, tables, "../args", "../aur", "../common", "../config", "../format", "../lists", "../package", "../pacman", "../utils", "../wrapper/alpm" @@ -145,7 +145,7 @@ proc cloneAndCopy(config: Config, quiet: bool, fullTargets: seq[FullPackageTarge removeDirQuiet(result.path) discard rmdir(config.tmpRootCurrent) - if rerrors != nil and cerrors != nil: + if rerrors.len > 0 or cerrors != nil: 1 else: 0 -- cgit v1.2.3-70-g09d2