Skip to content

clean up easyconfigs that are copied for inclusion in pull request#2197

Merged
boegel merged 2 commits intoeasybuilders:developfrom
boegel:cleanup_easyconfigs
May 18, 2017
Merged

clean up easyconfigs that are copied for inclusion in pull request#2197
boegel merged 2 commits intoeasybuilders:developfrom
boegel:cleanup_easyconfigs

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented Apr 29, 2017

cfr. #1674

enabled by default, can be disabled via --disable-cleanup-easyconfigs

@boegel boegel added this to the 3.3.0 milestone Apr 29, 2017
@boegel
Copy link
Copy Markdown
Member Author

boegel commented May 16, 2017

@wpoely86 please review?

:param paths: list of paths to easyconfigs to clean up
"""
regexs = [
re.compile(r"^# Built with EasyBuild.*\n", re.M),
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.

why re.M? Do actually deleted the \n too?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

In this case re.M isn't required, I think you're right.

Can you clarify the question on the \n? If you're asking if that's deleted too, yes, it is, and it should be, otherwise you'll end up with a blank line?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

On 2nd thought, the re.M is required, to ensure that also a comment like # Built with EasyBuild... is filtered out if it doesn't occur on the 1st line (maybe the easyconfig was manually edited afterwards...).

@boegel
Copy link
Copy Markdown
Member Author

boegel commented May 18, 2017

Thanks for the review @wpoely86!

@boegel boegel merged commit e93377c into easybuilders:develop May 18, 2017
@boegel boegel deleted the cleanup_easyconfigs branch May 18, 2017 09:10
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.

2 participants