Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-updates-src > by-pkgid > 61537fb87f9994db809cbef942a6512b > files > 7

webmin-1.930-1.mga7.src.rpm

diff -p -up webmin-1.441/oschooser.pl.osdetect webmin-1.441/oschooser.pl
--- webmin-1.441/oschooser.pl.osdetect	2008-10-27 18:07:42.000000000 -0200
+++ webmin-1.441/oschooser.pl	2009-04-09 16:28:42.000000000 -0300
@@ -48,9 +48,16 @@ if ($auto) {
 
 	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 Mageia
+		    foreach $o (@list) {
+			$ver = $o
+			    if ($o->[0] eq "Mageia" && (!$ver || $ver->[1] < $o->[1]));
+		    }
+		    print "WARNING: could not guess OS, falling back to $ver->[0] version $ver->[1]\n";
 			}
 		elsif ($auto == 3) {
 			# Do we have a tty?