diff options
author | kitsunyan | 2019-12-20 04:35:07 +0000 |
---|---|---|
committer | kitsunyan | 2019-12-20 04:35:07 +0000 |
commit | 90d4c4be3bc15b2f594a0046c07b6f8654659ad5 (patch) | |
tree | 89a79ffa58b086e5211473bb8633f5344e39000f /src/feature/syncsource.nim | |
parent | a25e544b717edab821779b4e7d978e8bf24debcb (diff) |
Add Nim 1.0 support
Diffstat (limited to 'src/feature/syncsource.nim')
-rw-r--r-- | src/feature/syncsource.nim | 4 |
1 files changed, 2 insertions, 2 deletions
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 |