I updated a centos machine from this code... you ripper, it works!
[glcas.git] / plugins / knownos.php
index eda7b96..33b5bed 100644 (file)
@@ -37,11 +37,16 @@ function getKnownOSList()
        $kos["repotype"]["apt"][0] = "baseurl";
        
        // OS's
-       $kos["os"]["Fedora"] = "Fedora";
-       $kos["os"]["Debian"] = "Debian";
-       $kos["os"]["RedHat"] = "RedHat Enterprise Linux";
-       $kos["os"]["Ubuntu"] = "Ubuntu";
-       $kos["os"]["CentOS"] = "Community Enterprise OS";
+       $kos["os"]["short"]["fedora"] = "Fedora";
+       $kos["os"]["short"]["debian"] = "Debian";
+       $kos["os"]["short"]["redhat"] = "RedHat";
+       $kos["os"]["short"]["ubuntu"] = "Ubuntu";
+       $kos["os"]["short"]["centos"] = "CentOS";
+       $kos["os"]["fedora"]["long"] = "Fedora";
+       $kos["os"]["debian"]["long"] = "Debian";
+       $kos["os"]["redhat"]["long"] = "RedHat Enterprise Linux";
+       $kos["os"]["ubuntu"]["long"] = "Ubuntu";
+       $kos["os"]["centos"]["long"] = "Community Enterprise OS";
        
        // Repo types per os
        $kos["os"]["Fedora"]["repotype"] = "yum";
@@ -50,6 +55,12 @@ function getKnownOSList()
        $kos["os"]["Ubuntu"]["repotype"] = "apt";
        $kos["os"]["CentOS"]["repotype"] = "yum";
        
+       // architectyres
+       $kos["arch"]["intel32"] = "i386";
+       $kos["arch"]["amdcrazy"] = "i586";
+       $kos["arch"]["amd64"] = "x86_64";
+       $kos["arch"]["amd64_2"] = "amd64";
+       
        
        
        return $kos;