Skip to content

Commit 4662997

Browse files
authored
Merge pull request #1 from davidbrochart/add_conda_packages
Fix JSON parsing
2 parents f050234 + 01004a2 commit 4662997

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ext/repo_conda.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,11 @@ parse_main(struct parsedata *pd, struct solv_jsonparser *jp)
161161
{
162162
if (type == JP_OBJECT && !strcmp("packages", jp->key))
163163
type = parse_packages(pd, jp);
164-
if (type == JP_ARRAY && !strcmp("packages", jp->key))
164+
else if (type == JP_ARRAY && !strcmp("packages", jp->key))
165165
type = parse_packages2(pd, jp);
166-
if (type == JP_OBJECT && !strcmp("packages.conda", jp->key))
166+
else if (type == JP_OBJECT && !strcmp("packages.conda", jp->key))
167167
type = parse_packages(pd, jp);
168-
if (type == JP_ARRAY && !strcmp("packages.conda", jp->key))
168+
else if (type == JP_ARRAY && !strcmp("packages.conda", jp->key))
169169
type = parse_packages2(pd, jp);
170170
else
171171
type = jsonparser_skip(jp, type);

0 commit comments

Comments
 (0)