Skip to content

Commit 2344ea3

Browse files
FrostyXpraiskup
authored andcommitted
rpmbuild: undefine %dist for SRPM builds
It was reported several times, that the %dist part of the version is confusing because it is evaluated to the Fedora versions that is currently running on our builders, instead of the target chroot. We could either add some tooltip explaining this, or not put the %dist value into the SRPM name in the first place. Merges: #2208
1 parent ef697d2 commit 2344ea3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rpmbuild/copr_rpmbuild/helpers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ def macros_for_task(task, config):
335335
macros["%buildtag"] = ".copr" + re.sub("-.*", "", task_id)
336336

337337
if not task["chroot"]:
338+
macros["%dist"] = "%nil"
338339
macros["%_disable_source_fetch"] = "0"
339340

340341
protocols_str = config.get("main", "enabled_source_protocols", fallback=None)

0 commit comments

Comments
 (0)