From: agriffis Date: Wed, 23 Mar 2005 18:20:00 +0000 (-0000) Subject: Only modify non-masked keywords with "all" X-Git-Tag: gentoolkit-0.2.4.3~304 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b70beb69251d0abf7802fe24ecda4ede67d163dc;p=gentoolkit.git Only modify non-masked keywords with "all" svn path=/; revision=202 --- diff --git a/trunk/src/ekeyword/ChangeLog b/trunk/src/ekeyword/ChangeLog index 881afee..6be92a5 100644 --- a/trunk/src/ekeyword/ChangeLog +++ b/trunk/src/ekeyword/ChangeLog @@ -1,3 +1,6 @@ +23 Mar 2005 Aron Griffis + * Only modify non-masked keywords with "all" + 17 Mar 2005 Aron Griffis * Sort keywords alphabetically diff --git a/trunk/src/ekeyword/ekeyword b/trunk/src/ekeyword/ekeyword index 46935df..738540b 100644 --- a/trunk/src/ekeyword/ekeyword +++ b/trunk/src/ekeyword/ekeyword @@ -68,8 +68,8 @@ for my $f (@ARGV) { # add or modify keywords else { if ($arch eq 'all') { - # modify every keyword in the list - $quoted =~ s/(^|\s)[-~]?(?=\w)/$1$leader/g; + # modify all non-masked keywords in the list + $quoted =~ s/(^|\s)~?(?=\w)/$1$leader/g; } else { # modify or add keyword unless ($quoted =~ s/[-~]?\Q$arch\E(\s|$)/$leader$arch$1/) {