name spec/patch_file by real crate name
When renaming using patch file, we really want to change file names too. Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
72c0a79dde
commit
0dc9fc182e
1 changed files with 2 additions and 2 deletions
|
@ -218,7 +218,7 @@ def main():
|
|||
template = JINJA_ENV.get_template("main.spec")
|
||||
|
||||
if args.patch and len(diff) > 0:
|
||||
patch_file = "{}-fix-metadata.diff".format(crate)
|
||||
patch_file = "{}-fix-metadata.diff".format(metadata.name)
|
||||
else:
|
||||
patch_file = None
|
||||
|
||||
|
@ -269,7 +269,7 @@ def main():
|
|||
kwargs["license"] = license
|
||||
kwargs["license_comments"] = comments
|
||||
|
||||
spec_file = "rust-{}.spec".format(crate)
|
||||
spec_file = "rust-{}.spec".format(metadata.name)
|
||||
spec_contents = template.render(md=metadata, patch_file=patch_file, **kwargs)
|
||||
if args.stdout:
|
||||
print("# {}".format(spec_file))
|
||||
|
|
Loading…
Reference in a new issue