danf: curl-www/dlwiz index.cgi,1.13,1.14

[email protected]
Newsgroups gmane.comp.web.curl.www.cvs
Message-ID <[email protected]>
Update of /cvsroot/curl/curl-www/dlwiz
In directory labb:/tmp/cvs-serv17238

Modified Files:
	index.cgi 
Log Message:
Try to detect a PDA device, or cygwin.


Index: index.cgi
===================================================================
RCS file: /cvsroot/curl/curl-www/dlwiz/index.cgi,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- index.cgi	29 Nov 2005 22:49:01 -0000	1.13
+++ index.cgi	13 Apr 2006 17:31:55 -0000	1.14
@@ -263,7 +263,7 @@
     elsif($ua =~ /IRIX/i) {
         $sel_os = "IRIX";
     }
-    elsif($ua =~ /(SunOS [1-4])/i) {
+    elsif($ua =~ /(SunOS [1-4]\b)/i) {
         $sel_os = "SunOS";
     }
     elsif($ua =~ /(SunOS|Solaris)/i) {
@@ -435,9 +435,6 @@
         elsif($ua=~ /gentoo/i) {
             $sel_flav = "Gentoo";
         }
-        elsif($ua=~ /cygwin/i) {
-            $sel_flav = "cygwin";
-        }
         elsif($ua=~ /Red Hat|CentOS/i) {
             $sel_flav = "Redhat";
         }
@@ -453,17 +450,21 @@
         elsif($ua=~ /VineLinux/i) {
             $sel_flav = "Vine";
         }
-        # Some indicators of a PDA device
-        # Not necessarily Familiar, but that's the best we have to offer
-        elsif($ua=~ /Qtopia|Qt *embedded|embedix|PDA/i) {
-            $sel_flav = "Familiar";
-        }
 
 	# Non-Linux flavours
+        elsif($ua=~ /cygwin/i) {
+            $sel_flav = "cygwin";
+        }
         elsif($ua=~ /PocketPC|Windows CE/i) {
             $sel_flav = "WinCE";
         }
 
+        # Some indicators of a PDA device
+        # Not necessarily Familiar, but that's the best we have to offer
+        elsif($ua=~ /Qtopia|Qt *embedded|embedix|PDA/i) {
+            $sel_flav = "Familiar";
+        }
+
         showsteps();
 
         subtitle("Select for What Flavour");
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.