Gerhard Hofmann escribió: > Hi all, > > a while ago I suggested to add some lines to todo.pl... > ... > Maybe it would be a good idea to do substring instead of exact string > matches? > > Like this: > $product_name contains "Vista" --> $os = "vista" > $product_name contains "2008" --> $os = "win2008" > Gerhard,
I make those changes, I will test it and commit soon: Would you mind test it on your enviroment as well to ensure that we are not breaking anything? Index: todo.pl =================================================================== --- todo.pl (revisión: 3013) +++ todo.pl (copia de trabajo) @@ -197,18 +197,18 @@ elsif ($product_name eq 'Microsoft Windows XP') { $os = 'winxp'; } - elsif ($product_name eq 'Microsoft Windows Server 2003') { + elsif ($product_name contains 'Microsoft Windows Server 2003') { $os = 'ws2k3'; } - elsif ($product_name eq 'Microsoft Windows Server 2003 R2') { - $os = 'ws2k3'; - } - elsif ($product_name eq 'Windows Vista (TM) Business') { + elsif ($product_name contains 'Windows Vista') { $os = 'vista'; } - elsif ($product_name eq 'Windows Vista (TM) Ultimate') { - $os = 'vista'; + elsif ($product_name contains 'Windows Server 2008') { + $os = 'ws2k8'; } + elsif ($product_name contains 'Windows 7') { + $os = 'win7'; + } else { die "Unrecognized $pn_key: $product_name"; } ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ unattended-info mailing list unattended-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/unattended-info