[pca] multiple patterns
Martin Paul
martin at par.univie.ac.at
Mon Sep 8 09:50:01 CEST 2008
Floyd, Chuck wrote:
> Is there a way for me to put in multiple pattern matches? For example,
> I want to match Veritas patches with "VRTS|VERITAS|Veritas|SYMC" but not
> NetBackup.
Unfortunately not. You can only combine your pattern with "ignore"
statements for all the NetBackup patch IDs that match.
Some time ago I had put support for multiple pattern options into pca.
It turned out to be not that easy - the question was whether multiple
patterns should be logically ANDed or ORed. Both of them make sense in
different situations:
- you need OR to specify e.g. patches which match "VRTS" or "Veritas"
- you need AND to specify patches which also match NOT "NetBackup".
So I would have to add a complete pattern parser supporting AND/OR/NOT
plus parantheses for grouping. That's too complicated IMO.
Martin.
More information about the pca
mailing list