[pca] multiple patterns
Fredrich Maney
fmaney at ARCcorp.com
Mon Sep 8 21:02:20 CEST 2008
What about instead of using a separate --pattern flag that you make
it so that --ignore, --rec and --sec accept patterns or add flags
for ignorepattern and requirepattern?
For example, putting something like following in pca.conf:
nocheckxref
xrefdir=/patchrep
patchdir=/patchrep
minage=30
ignorepattern=VRTS|VERITAS|NetBackup|JavaSE|JD[KS]|StarOffice|mysql|GNOM
E|X11|CDE
requirepattern=SAN
fpsm
--
Fredrich Maney
A*R*C
> -----Original Message-----
> From: pca-bounces at lists.univie.ac.at
> [mailto:pca-bounces at lists.univie.ac.at] On Behalf Of Martin Paul
> Sent: Monday, September 08, 2008 3:50 AM
> To: PCA (Patch Check Advanced) Discussion
> Subject: Re: [pca] multiple patterns
>
> 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