use name/feature syntax
It's much more common with what cargo people to. Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
83823845a2
commit
8a7fbbd245
1 changed files with 2 additions and 2 deletions
|
@ -70,8 +70,8 @@ args = parser.parse_args()
|
|||
files = args.file or sys.stdin.readlines()
|
||||
|
||||
def print_dep(name, spec, kind="=", feature=None):
|
||||
f_part = "({})".format(feature) if feature is not None else ""
|
||||
print("crate({}){} {} {}".format(name, f_part, kind.replace("==", "="), spec))
|
||||
f_part = "/{}".format(feature) if feature is not None else ""
|
||||
print("crate({}{}) {} {}".format(name, f_part, kind.replace("==", "="), spec))
|
||||
|
||||
for f in files:
|
||||
f = f.rstrip()
|
||||
|
|
Loading…
Reference in a new issue