Skip to content

Commit

Permalink
define dist as %{nil} instead of undefining it
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Dec 11, 2024
1 parent 7a10a68 commit 481dec8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion obal/data/module_utils/obal.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def macro_lookup(command, scl=None, dist=None, macros=None):
if dist:
command += ['--define', 'dist %s' % dist]
else:
command += ['--undefine', 'dist']
command += ['--define', 'dist %{nil}']

if scl:
command += ['--define', 'scl %s' % scl]
Expand Down
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 481dec8

Please sign in to comment.