Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 452528 Details for
Bug 594446
app-portage/flaggie-0.2.1: chokes on wildcards
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fixes keyword handling
keyword-wildcard.patch (text/plain), 1.46 KB, created by
Raymond Jennings
on 2016-11-06 14:28:57 UTC
(
hide
)
Description:
Fixes keyword handling
Filename:
MIME Type:
Creator:
Raymond Jennings
Created:
2016-11-06 14:28:57 UTC
Size:
1.46 KB
patch
obsolete
>diff --git a/lib/flaggie/action.py b/lib/flaggie/action.py >index 9e98256..ee6fb08 100644 >--- a/lib/flaggie/action.py >+++ b/lib/flaggie/action.py >@@ -52,7 +52,7 @@ class Action(object): > > # Check whether the argument looks like a pattern but denote that > # for keywords '**' and '*' have special meaning. >- if (ns and 'kw' not in ns) or arg not in ('**', '*'): >+ if (ns and 'kw' not in ns) or arg not in ('**', '*', '~*'): > for schr in ('*', '?', '['): > if schr in arg: > if not ns: >diff --git a/lib/flaggie/cache.py b/lib/flaggie/cache.py >index 02c66cb..c9ecbca 100644 >--- a/lib/flaggie/cache.py >+++ b/lib/flaggie/cache.py >@@ -95,7 +95,7 @@ class Caches(object): > kws = set() > for r in self.dbapi.porttrees: > kws.update(grabfile(os.path.join(r, 'profiles', 'arch.list'))) >- kws.update(['~%s' % x for x in kws], ('*', '**')) >+ kws.update(['~%s' % x for x in kws], ('*', '**', '~*')) > > # and the ** special keyword > self.cache[None] = frozenset(kws) >diff --git a/lib/flaggie/cleanup.py b/lib/flaggie/cleanup.py >index 053fd4a..d068005 100644 >--- a/lib/flaggie/cleanup.py >+++ b/lib/flaggie/cleanup.py >@@ -61,7 +61,7 @@ class DropUnmatchedFlags(BaseCleanupAction): > if dbcache[pe.package]: > flags = cache[pe.package] > for flag in set([x.name for x in pe]): >- if k == 'kw' and flag == '**': >+ if k == 'kw' and (flag == '**' or flag == '*' or flag == '~*'): > pass > elif flag not in flags: > del pe[flag]
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 594446
:
446764
|
446766
|
446768
| 452528