[LON-CAPA-cvs] cvs: loncom /build distprobe

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 01 Nov 2004 21:53:24 -0000


albertel		Mon Nov  1 16:53:24 2004 EDT

  Modified files:              
    /loncom/build	distprobe 
  Log:
  - make all fedora release numbers int, and round up things than high that X.90 ( this way FC3T3 (Fedora Core 2.92) gets a distprobe indentifier of fedora3)
  
  
Index: loncom/build/distprobe
diff -u loncom/build/distprobe:1.6 loncom/build/distprobe:1.7
--- loncom/build/distprobe:1.6	Tue Oct 26 15:45:57 2004
+++ loncom/build/distprobe	Mon Nov  1 16:53:23 2004
@@ -2,7 +2,7 @@
 #
 # The LearningOnline Network with CAPA
 #
-# $Id: distprobe,v 1.6 2004/10/26 19:45:57 albertel Exp $
+# $Id: distprobe,v 1.7 2004/11/01 21:53:23 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -43,7 +43,12 @@
             $dist='redhat9';
         }
     } elsif ($versionstring =~ /Fedora Core release ([\d\.]+) /) {
-        $dist = 'fedora'.$1;
+	my $version=$1;
+	if ($version - int($version) > .9) {
+	    $dist = 'fedora'.(int($version)+1);
+	} else {
+	    $dist = 'fedora'.int($version);
+	}
     } else {
         warn('Unable to interpret /etc/redhat-release '.
              'to determine system type');