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

build: fixing blacklist/whitelist to use package names instead of paths #175

Merged
merged 2 commits into from
Apr 2, 2015

Conversation

jbohren
Copy link
Contributor

@jbohren jbohren commented Mar 27, 2015

Fixes issue: #152 (comment)
Fixes confusion: #152 (comment)

@jbohren jbohren force-pushed the fix-blacklist-pkg-name-vs-path branch from b83dd32 to 8607a2d Compare March 27, 2015 14:55
packages_to_be_built_deps = [
p for p in packages_to_be_built_deps if (p[0] not in context.blacklist or p[0] in packages)]
p for p in packages_to_be_built_deps if (p[1].name not in context.blacklist or p[1].name in packages)]
Copy link
Member

Choose a reason for hiding this comment

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

It would probably be better to expand the tuple rather than access it by index. Something like:

[(pth, pkg) for pth, pkg in packages_to_be_built_deps if pkg.name not in context.blacklist or pkg.name in packages]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed.

@wjwwood
Copy link
Member

wjwwood commented Mar 27, 2015

Other than the comment lgtm.

@jbohren jbohren force-pushed the fix-blacklist-pkg-name-vs-path branch 5 times, most recently from 1ec7683 to 783ed38 Compare April 1, 2015 15:41
…ackages

Also changing `--clear-*list` to `--no-*list` to be more consistent and
clearer.
@jbohren jbohren force-pushed the fix-blacklist-pkg-name-vs-path branch from 783ed38 to ebca78a Compare April 1, 2015 15:54
@jbohren
Copy link
Contributor Author

jbohren commented Apr 1, 2015

@wjwwood This is good to review.

wjwwood added a commit that referenced this pull request Apr 2, 2015
…path

build: fixing blacklist/whitelist to use package names instead of paths
@wjwwood wjwwood merged commit 8371b51 into catkin:master Apr 2, 2015
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