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:
parent
eea2ef7496
commit
83823845a2
1 changed files with 5 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue