main: fix crash when using both --compat and a partial version

This commit is contained in:
Fabio Valentini 2023-10-10 22:48:57 +02:00
parent d6850d3f80
commit 1604e7e36f
No known key found for this signature in database
GPG key ID: 5AC5F572E5D410AF

View file

@ -72,7 +72,7 @@ def main():
log.warn("The '--suffix' argument is deprecated, use the '--compat' flag instead.")
rpm_name = package_name_suffixed(base_name, args.suffix)
elif args.compat:
rpm_name = package_name_compat(base_name, args.version)
rpm_name = package_name_compat(base_name, version)
else:
rpm_name = package_name_suffixed(base_name, None)