From 3b984b6b8f6107ec37c35cf4091e1a85a0a22abb Mon Sep 17 00:00:00 2001 From: kitsunyan Date: Tue, 13 Mar 2018 03:07:52 +0300 Subject: Ignore empty package references --- src/package.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/src/package.nim b/src/package.nim index 699aee5..ce74303 100644 --- a/src/package.nim +++ b/src/package.nim @@ -193,6 +193,7 @@ proc parseSrcInfoName(repo: string, name: string, rpcInfos: seq[RpcPackageInfo], proc collectArch(keyName: string, arch: Option[string]): seq[ArchPackageReference] = collect(arch.map(a => keyName & "_" & a).get(keyName)) .map(splitConstraint) + .filter(c => c.name.len > 0) .map(c => (arch, (c.name, c.description, c.constraint))) proc collectArchs(keyName: string, archs: seq[string]): seq[ArchPackageReference] = -- cgit v1.2.3-70-g09d2