take features into account for Requires/Conflicts

Before:
crate(nom) >= 2.0.0

After:
crate(nom)(verbose-errors) >= 2.0.0
crate(nom)(regexp_macros) >= 2.0.0

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2017-01-30 18:37:38 +01:00
parent eea2ef7496
commit 83823845a2

View file

@ -88,7 +88,8 @@ for f in files:
continue
req, con = parse_req(dep["req"])
assert req is not None
if args.requires:
print_dep(dep["name"], req.spec, req.kind)
if args.conflicts and con is not None:
print_dep(dep["name"], con.spec, REQ_TO_CON[con.kind])
for feature in dep["features"] or [None]:
if args.requires:
print_dep(dep["name"], req.spec, req.kind, feature=feature)
if args.conflicts and con is not None:
print_dep(dep["name"], con.spec, REQ_TO_CON[con.kind], feature=feature)