Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow passing macros to SRPM build #320

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ehelms
Copy link
Member

@ehelms ehelms commented Aug 30, 2022

Refs #318

This aligns better with any provided macros by the project and allows for passing a nightly macro.

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense.

@@ -134,6 +136,10 @@ def main():
if scl:
command += ['--define', 'scl %s' % scl]

if macros is not None:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the default is {}, is this ever None? I kind of forgot what argument_spec really does.

Copy link
Member

@evgeni evgeni Sep 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the default is {} then this is never None, no. It's only None for fields that don't have a default and are required=False. (I'd actually would drop the default={} from the argument_spec and keep the if not None here)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants