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

add ConditionalReq #9

Open
Jbonnett opened this issue Oct 1, 2013 · 0 comments
Open

add ConditionalReq #9

Jbonnett opened this issue Oct 1, 2013 · 0 comments

Comments

@Jbonnett
Copy link
Member

Jbonnett commented Oct 1, 2013

Conditional req takes a conditional function as a arguement and if it returns true it continues and satisfies its dependancies.
For instance

ConditionalReq(condition=lambda: return True, deps=[
    AptReq(packages=["buildessentials"])

] )

Could be very useful with FactReq

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

No branches or pull requests

1 participant