Re: [1/2] msi: Don't try to install or remove ODBC drivers if the component is disabled.
9 Dec
2010
9 Dec
'10
3:52 p.m.
Hello, I noticed in this patch, exactly the same lines are added in all the functions; wouldn't it be better to add a(n) (inline) function isComponentEnabled(rec,package) to reduce the repetition? HTH, Joris
9 Dec
9 Dec
4:25 p.m.
New subject: [1/2] msi: Don't try to install or remove ODBC drivers if the component is disabled.
On Thu, 2010-12-09 at 07:52 -0800, Joris Huizer wrote:
I noticed in this patch, exactly the same lines are added in all the functions; wouldn't it be better to add a(n) (inline) function isComponentEnabled(rec,package) to reduce the repetition?
I'm not opposed to consolidating the check in a function, but note that there's a trace in there that reveals the action being run (through the function name), and this information should not get lost.
5572
Age (days ago)
5572
Last active (days ago)
1 comments
2 participants
participants (2)
-
Hans Leidekker -
Joris Huizer