Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > c48b1cf90bc31473acf1c90226aa0264 > files > 12

webmin-1.420-2mdv2009.0.src.rpm

--- ./oschooser.pl.gege	Wed Mar 28 01:32:37 2001
+++ ./oschooser.pl	Wed Apr 25 17:41:05 2001
@@ -31,9 +31,16 @@
 		}
 	if (!$ver) {
 		if ($auto == 1) {
-			# Failed .. give up
-			print "Failed to detect operating system\n";
-			exit 1;
+#			# Failed .. give up
+#			print "Failed to detect operating system\n";
+#			exit 1;
+#
+#               ######### (gc) Do not give up but use the latest release of Mandrakelinux
+		    foreach $o (@list) {
+			$ver = $o
+			    if ($o->[0] eq "Mandrakelinux" && (!$ver || $ver->[1] < $o->[1]));
+		    }
+		    print "WARNING: could not guess OS, falling back to $ver->[0] version $ver->[1]\n";
 			}
 		else {
 			# Ask the user