]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bugzilla Bug 109138 platform detection not working on macintosh
authortimeless%mac.com <>
Fri, 9 Nov 2001 13:32:43 +0000 (13:32 +0000)
committertimeless%mac.com <>
Fri, 9 Nov 2001 13:32:43 +0000 (13:32 +0000)
r=bbaetz,dkl

enter_bug.cgi

index 383c536901cdf846a7f0b2682b8b142d1801b298..c96c71b2c226d93c0e9fb24a55422a5b91258928 100755 (executable)
@@ -248,14 +248,24 @@ sub pickos {
             /\(.*WinNT.*\)/ && do {return "Windows NT";};
             /\(.*32bit.*\)/ && do {return "Windows 95";};
             /\(.*16bit.*\)/ && do {return "Windows 3.1";};
-            /\(.*Macintosh.*\)/ && do {return "Macintosh";};
             /\(.*Mac OS 9.*\)/ && do {return "Mac System 9.x";};
             /\(.*Mac OS 8\.6.*\)/ && do {return "Mac System 8.6";};
-            /\(.*Mac OS 8.*\)/ && do {return "Mac System 8.5";};
+            /\(.*Mac OS 8\.5.*\)/ && do {return "Mac System 8.5";};
+#we don't know 8.1
+            /\(.*Mac OS 8\.1.*\)/ && do {return "Mac System 8.0";};
+            /\(.*Mac OS 8\.0.*\)/ && do {return "Mac System 8.0";};
+            /\(.*Mac OS 8[^.].*\)/ && do {return "Mac System 8.0";};
+            /\(.*Mac OS 8.*\)/ && do {return "Mac System 8.6";};
+            /\(.*Darwin.*\)/ && do {return "MacOS X";};
+#silly
+            /\(.*Mac.*PowerPC.*\)/ && do {return "Mac System 9.x";};
+            /\(.*Mac.*PPC.*\)/ && do {return "Mac System 9.x";};
+            /\(.*Mac.*68k.*\)/ && do {return "Mac System 8.0";};
 #evil
             /Amiga/i && do {return "other";};
-            /\(.*68K.*\)/ && do {return "Mac System 8.5";};
-            /\(.*PPC.*\)/ && do {return "Mac System 8.5";};
+            /\(.*PowerPC.*\)/ && do {return "Mac System 9.x";};
+            /\(.*PPC.*\)/ && do {return "Mac System 9.x";};
+            /\(.*68K.*\)/ && do {return "Mac System 8.0";};
         }
     }
     # default