| |
@@ -426,10 +426,8 @@
|
| |
|
| |
kwargs["auto_changelog_entry"] = not args.no_auto_changelog_entry
|
| |
|
| |
- if args.rpmautospec:
|
| |
- kwargs["rpmautospec"] = True
|
| |
- else:
|
| |
- kwargs["rpmautospec"] = detect_rpmautospec(default_target, spec_file)
|
| |
+ rpmautospec = args.rpmautospec or detect_rpmautospec(default_target, spec_file)
|
| |
+ kwargs["rpmautospec"] = rpmautospec
|
| |
|
| |
if args.target in {"fedora", "mageia", "opensuse"}:
|
| |
kwargs["include_build_requires"] = True
|
| |
@@ -449,7 +447,7 @@
|
| |
kwargs["spec_copyright_year"] = time.strftime("%Y")
|
| |
kwargs["pkg_release"] = "0"
|
| |
kwargs["rust_group"] = "Development/Libraries/Rust"
|
| |
- elif args.rpmautospec:
|
| |
+ elif rpmautospec:
|
| |
kwargs["pkg_release"] = "%autorelease"
|
| |
else:
|
| |
kwargs["pkg_release"] = "1%{?dist}"
|
| |
Fixup for 7e0afd5: the condition was
updated in one place, but not in the other we used the original
args.rpmautospec value.