1 |
Dne 1.9.2011 14:48, Michał Górny napsal(a): |
2 |
> Hello, |
3 |
> |
4 |
> Our bash-completion.eclass is awful and ugly. I'm not even talking |
5 |
> about flags and stuff now but dobashcompletion() itself. |
6 |
> |
7 |
> That function doesn't follow do*() argument scheme; it matches rather |
8 |
> one used by new*() funcs. Sadly, a number of ebuilds is using that |
9 |
> scheme to rename installed file. |
10 |
> |
11 |
> Furthermore, it uses two eclass variables to switch the behavior. |
12 |
> |
13 |
> BASHCOMPFILES allows it to install multiple files (but works only if no |
14 |
> arguments are passed). |
15 |
> |
16 |
> BASHCOMPLETION_NAME renames the installed file (if BASHCOMPFILES is not |
17 |
> used) and makes it ignore the second argument. |
18 |
> |
19 |
> I think the way to go would be to reimplement it completely. Maybe just |
20 |
> put dobashcomp() and newbashcomp() functions in eutils (to not collide) |
21 |
> and deprecate bash-completion.eclass? |
22 |
> |
23 |
I would go with the eutils.eclass update, but remember that you have to |
24 |
keep backcompat for the old call :( |
25 |
|
26 |
Tom |