Skip to content

Commit baf0c44

Browse files
authored
Merge pull request #362 from wolfv/add_conda_packages
add parsing of the packages.conda key
2 parents c7d13d0 + 4662997 commit baf0c44

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

ext/repo_conda.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,11 @@ parse_main(struct parsedata *pd, struct solv_jsonparser *jp)
201201
{
202202
if (type == JP_OBJECT && !strcmp("packages", jp->key))
203203
type = parse_packages(pd, jp);
204-
if (type == JP_ARRAY && !strcmp("packages", jp->key))
204+
else if (type == JP_ARRAY && !strcmp("packages", jp->key))
205+
type = parse_packages2(pd, jp);
206+
else if (type == JP_OBJECT && !strcmp("packages.conda", jp->key))
207+
type = parse_packages(pd, jp);
208+
else if (type == JP_ARRAY && !strcmp("packages.conda", jp->key))
205209
type = parse_packages2(pd, jp);
206210
else
207211
type = jsonparser_skip(jp, type);

0 commit comments

Comments
 (0)