Sophie

Sophie

distrib > Mandriva > 2008.0 > x86_64 > by-pkgid > 467d033e9b263674899f617d83a928f3 > files > 12

webmin-1.360-2.2mdv2008.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