Base rpmautospec on choosen target instead of default_target

This commit is contained in:
Anders Blomdell 2022-06-03 16:42:13 +02:00
parent 7d8c9a8028
commit f54be37deb

View file

@ -448,7 +448,7 @@ def main():
rpmautospec = args.rpmautospec
if args.rpmautospec is None:
rpmautospec = detect_rpmautospec(default_target, spec_file)
rpmautospec = detect_rpmautospec(args.target, spec_file)
kwargs["rpmautospec"] = rpmautospec
kwargs["relative_license_paths"] = args.relative_license_paths