4.2. Expressions

The pool manager uses expressions to select the packages of a pool to which certain actions should be applied. The basic elements of theses expressions the following atomic predicates:

name is <string>

True if the package name exactly matches the given string.

name matches <regex>

True if the given regular expression matches the package name.

label is <string>

True if the label of this package version exactly matches the given string. This is currently not implemented, but will be in future versions.

label matches <regex>

True if the given regular expression matches the package label. Currently not implemented.

version = <string>

True if the version of the package exactly matches the given version string.

version < <string>

True if the version of the package is less than the given version string.

version <= <string>

True if the version of the package is less than or equal to the given version string.

version > <string>

True if the version of the package is greater than the given version string.

version >= <string>

True if the version of the package is greater than or equal to the given version string.

outdated | fixed | hidden

True if the version of the package is outdate by a version with the same major and minor numbers, but a higher patch level.



The boolean operator not is used to invert the truth of an expressions. The operators and and or may be used to combine expressions. Parentheses can be used to group expressions end explicitly define the evaluation order.

Please note that the expressions must be one argument to the pool manager program. This usually means that you will have to quote the expression using single or double quote characters, depending on the kind of shell or command interpreter you are using to invoke the pool manager.