From f54be37deb9ba62098a23ecbfeebdbf1e8b0028b Mon Sep 17 00:00:00 2001 From: Anders Blomdell Date: Fri, 3 Jun 2022 16:42:13 +0200 Subject: [PATCH] Base rpmautospec on choosen target instead of default_target --- rust2rpm/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust2rpm/__main__.py b/rust2rpm/__main__.py index a011217..2cffd40 100644 --- a/rust2rpm/__main__.py +++ b/rust2rpm/__main__.py @@ -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