Use underscore instead of a dash in compat suffixes
The Fedora Packaging Guidelines are clear on this: > If the base package name ends with a digit, a single underscore (_) > MUST be appended to the name, and the version MUST be appended to > that, in order to avoid confusion over where the name ends and the > version begins. > > If the base package name does not end with a digit, the version MUST > be directly appended to the package name with no intervening > separator. Fixes #180.
This commit is contained in:
parent
3781ce3b33
commit
7117dcce81
1 changed files with 1 additions and 1 deletions
|
@ -426,7 +426,7 @@ def main():
|
||||||
|
|
||||||
if args.suffix is not None:
|
if args.suffix is not None:
|
||||||
if metadata.name[-1].isdigit():
|
if metadata.name[-1].isdigit():
|
||||||
suffix = f'-{args.suffix}'
|
suffix = f'_{args.suffix}'
|
||||||
else:
|
else:
|
||||||
suffix = args.suffix
|
suffix = args.suffix
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue