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

Tcl filter readme should include more examples #34

Open
giner opened this issue Jul 18, 2014 · 0 comments
Open

Tcl filter readme should include more examples #34

giner opened this issue Jul 18, 2014 · 0 comments

Comments

@giner
Copy link
Contributor

giner commented Jul 18, 2014

For example, filtering all of Ubuntu 12.04 with not supported kernel (regarding this https://wiki.ubuntu.com/Kernel/LTSEnablementStack#Kernel.2BAC8-Support.A12.04.x_Ubuntu_Kernel_Support):

return [expr [expr [string compare $lsb_rel "12.04"] == 0] && [expr [string first "3.2." $kernel] != 0] && [expr [string first "3.13." $kernel] != 0]]

It looks quite complex, please suggest how to simplify if possible. Can we get rid of expr somwhere? I didn't manage. Links to Tcl filter docs would be also helpful in the readme.

Another example, filtering all of Ubuntu 12.04 wihout linux-generic-lts-trusty installed

return [[expr [string compare $lsb_rel "12.04"] == 0] && [expr [llength [array names installed "linux-generic-lts-trusty"]] == 0]]
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