From: timeless%mac.com <> Date: Fri, 9 Nov 2001 13:32:43 +0000 (+0000) Subject: Bugzilla Bug 109138 platform detection not working on macintosh X-Git-Tag: bugzilla-2.14.1~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a7fd9f01b94922158fb0eb2695f8dcd077ad3bea;p=thirdparty%2Fbugzilla.git Bugzilla Bug 109138 platform detection not working on macintosh r=bbaetz,dkl --- diff --git a/enter_bug.cgi b/enter_bug.cgi index 383c536901..c96c71b2c2 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -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