Fix: tools version comparison shows always less recent
authorDario Sestito <darios@symbian.org>
Mon, 21 Jun 2010 16:41:04 +0100
changeset 289 759aa5329d25
parent 288 77dc8956ed66
child 290 802d76cf07f1
Fix: tools version comparison shows always less recent
envinfo/envinfo.pl
--- a/envinfo/envinfo.pl	Wed Jun 16 12:25:30 2010 +0100
+++ b/envinfo/envinfo.pl	Mon Jun 21 16:41:04 2010 +0100
@@ -289,12 +289,12 @@
 			{
 				print "[OK]";
 			}
-			elsif ($tool_info->{version} cmp $baselineversion < 0)
+			elsif (($tool_info->{version} cmp $baselineversion) < 0)
 			{
 				print "[WARNING: less recent than baseline]";
 				$cmp_diffver++;
 			}
-			elsif ($tool_info->{version} cmp $baselineversion > 0)
+			elsif (($tool_info->{version} cmp $baselineversion) > 0)
 			{
 				print "[WARNING: more recent than baseline]";
 				$cmp_diffver++;