Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73306 - When checking arguments ekeyword may not have the correct regular expression
Summary: When checking arguments ekeyword may not have the correct regular expression
Status: RESOLVED LATER
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: PPC64 All
: High normal (vote)
Assignee: Gentoo for Mac OS X
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-03 22:55 UTC by Charles Stockman
Modified: 2006-04-12 10:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Charles Stockman 2004-12-03 22:55:39 UTC
Here is what I did  

cd /usr/portage/kde-base
ekeyword ~pcc-maxos kdebase-3.3.1.ebuild
syntax: ekeyword { arch | ~[arch] | -[arch] } ebuild...

I believe that the fix should be the following.


my ($kw_re) = '^(?:([-~^]?)(\w+)|([-^]\*))$';

Change the \w+ to \S+.  This will allow you to get the - because \w only looks at the alpha-numeric and _ while \S+ would include the -

Thank you for looking at this problem

Reproducible: Always
Steps to Reproduce:
1.cd /usr/portage/kde-base
2.ekeyword ~pcc-maxos kdebase-3.3.1.ebuild
3.
Actual Results:  
syntax: ekeyword { arch | ~[arch] | -[arch] } ebuild...

Expected Results:  
I believe that ekeyword should have accpeted the arguemnts ( This is my first time running it so I 
reallly don't have a clue)
Comment 1 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-12-03 23:15:17 UTC
It is already fixed in _pre4. AFAIK this is the
third bug report of ekeyword, and so I marked
_pre4 stable on ppc-macos (hope it's okay,
because <=_pre3 is broken wrt ekeyword on
ppc-macos). Please use _pre4 rather than <=_pre3.