Skip to content

add conditional so "--with-x" is only added to configopts if not defined#1415

Merged
boegel merged 2 commits intoeasybuilders:developfrom
pescobar:r-easyconfig-with-x
May 3, 2018
Merged

add conditional so "--with-x" is only added to configopts if not defined#1415
boegel merged 2 commits intoeasybuilders:developfrom
pescobar:r-easyconfig-with-x

Conversation

@pescobar
Copy link
Copy Markdown
Member

@pescobar pescobar commented May 3, 2018

No description provided.

Comment thread easybuild/easyblocks/r/r.py Outdated
self.cfg.update('configopts', '--with-x=yes')
else:
self.cfg.update('configopts', '--with-x=no')
if "--with-x=" not in self.cfg['configopts']:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@pescobar Maybe it's safer if we check this lowercase?

if '--with-x=' not in self.cfg['configopts'].lower():

Also, drop the empty line below :)

@boegel boegel added this to the 3.6.1 milestone May 3, 2018
@boegel boegel added the bug fix label May 3, 2018
@boegel
Copy link
Copy Markdown
Member

boegel commented May 3, 2018

Thanks @pescobar!

@boegel boegel merged commit 860e8ea into easybuilders:develop May 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants