Skip to content

Commit cc58561

Browse files
jessp01nforro
andauthored
Apply suggestion from @nforro: take "dist" mactor into account.
Co-authored-by: Nikola Forró <[email protected]>
1 parent 37eedcc commit cc58561

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

specfile/specfile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,8 @@ def add_changelog_entry(
616616
evr = f"{tags.epoch.expanded_value}:"
617617
except AttributeError:
618618
evr = ""
619-
evr += f"{tags.version.expanded_value}-{tags.release.expanded_value}"
619+
evr += f"{tags.version.expanded_value}-"
620+
evr += self.expand(tags.release.value, extra_macros=[("dist", "")])
620621
with self.changelog(section) as changelog:
621622
if changelog is None:
622623
return

0 commit comments

Comments
 (0)