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:
Igor Gnatenko 2017-01-30 18:37:48 +01:00
parent 83823845a2
commit 8a7fbbd245

View file

@ -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()