diff options
author | kitsunyan | 2018-03-13 00:07:52 +0000 |
---|---|---|
committer | kitsunyan | 2018-03-13 00:07:52 +0000 |
commit | 3b984b6b8f6107ec37c35cf4091e1a85a0a22abb (patch) | |
tree | d8e3eec413cd6206c33467353120f15b9363e798 /src | |
parent | fd397b356e9be1d3572ace965ead57120803a0ac (diff) |
Ignore empty package references
Diffstat (limited to 'src')
-rw-r--r-- | src/package.nim | 1 |
1 files changed, 1 insertions, 0 deletions
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] = |