Make --no-rpmautospec actually work

It seems I screwed up the implementation one hundred percent.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2022-07-03 15:53:52 +02:00
parent 166214f834
commit 1d225f99b1

View file

@ -384,7 +384,7 @@ def main():
default=None, default=None,
help="Use autorelease and autochangelog features") help="Use autorelease and autochangelog features")
parser.add_argument("--no-rpmautospec", action="store_false", parser.add_argument("--no-rpmautospec", action="store_false",
default=None, dest="rpmautospec",
help="Do not use rpmautospec") help="Do not use rpmautospec")
parser.add_argument("--relative-license-paths", action="store_true", parser.add_argument("--relative-license-paths", action="store_true",
help="Put all license files in main license directory") help="Put all license files in main license directory")
@ -468,7 +468,7 @@ def main():
kwargs["auto_changelog_entry"] = not args.no_auto_changelog_entry kwargs["auto_changelog_entry"] = not args.no_auto_changelog_entry
rpmautospec = args.rpmautospec rpmautospec = args.rpmautospec
if args.rpmautospec is None: if rpmautospec is None:
rpmautospec = detect_rpmautospec(args.target, spec_file) rpmautospec = detect_rpmautospec(args.target, spec_file)
kwargs["rpmautospec"] = rpmautospec kwargs["rpmautospec"] = rpmautospec