Skip to content

Commit

Permalink
define dist as %{nil} instead of undefining it when building SRPM
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni authored and ekohl committed Dec 11, 2024
1 parent 7a10a68 commit 2bf5050
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion obal/data/modules/srpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def build_srpm(module, package, base_dir, sources_dir, scl=None, macros=None):
command += ['--define', '_builddir %s' % build_dir]
command += ['--define', '_srcrpmdir %s' % base_dir]
command += ['--define', '_rpmdir %s' % base_dir]
command += ['--undefine', 'dist']
command += ['--define', 'dist %{nil}']

if scl:
command += ['--define', 'scl %s' % scl]
Expand Down

0 comments on commit 2bf5050

Please sign in to comment.