diff options
author | kitsunyan | 2018-03-17 20:55:48 +0000 |
---|---|---|
committer | kitsunyan | 2018-03-17 20:55:48 +0000 |
commit | 75b2f60bf15a9d49859b262a47da30ec70614a5e (patch) | |
tree | 5de302585fb93359f2427e5a2acbdf1162edbab2 /src/feature/localquery.nim | |
parent | 8d0508a73cd984fa532ff9f29cbedba5d0e0aa81 (diff) |
Check conflicting targets before building
Diffstat (limited to 'src/feature/localquery.nim')
-rw-r--r-- | src/feature/localquery.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/feature/localquery.nim b/src/feature/localquery.nim index b07ec98..9dfaa05 100644 --- a/src/feature/localquery.nim +++ b/src/feature/localquery.nim @@ -1,6 +1,6 @@ import algorithm, future, options, sequtils, sets, strutils, tables, - "../args", "../common", "../config", "../format", "../package", "../pacman", "../utils", + "../args", "../config", "../format", "../package", "../pacman", "../utils", "../wrapper/alpm" proc handleQueryOrphans*(args: seq[Argument], config: Config): int = @@ -22,11 +22,11 @@ proc handleQueryOrphans*(args: seq[Argument], config: Config): int = reference let depends = toSeq(pkg.depends.items) - .map(toPackageReference).toSet + .map(d => d.toPackageReference).toSet let optional = toSeq(pkg.optional.items) - .map(toPackageReference).toSet + .map(d => d.toPackageReference).toSet let provides = toSeq(pkg.provides.items) - .map(toPackageReference).map(fixProvides).toSet + .map(d => d.toPackageReference).map(fixProvides).toSet installed.add(($pkg.name, pkg.reason == AlpmReason.explicit), depends + optional) |