main: fix crash when using both --compat and a partial version
This commit is contained in:
parent
d6850d3f80
commit
1604e7e36f
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue