getting apt up and running
[glcas.git] / plugins / repo.php
index c201756..ee1f141 100644 (file)
@@ -804,9 +804,14 @@ class GLCASRepo {
                        //echo "<br>$key, $val<br>";
                        //echo "now check, $action1/$key";
                        if(glcas_isRemoteDir($action1."/$key")) {
-                               $existing_repos["knownrepo"][$repos] = $key;
-                               $repos++;
+                               $existing_repos["knownrepo"][$repos]["name"] = $key;
                                //echo "Found Distro $val<br>";
+                               if(glcas_fileExists($action1."/$key/Contents-amd64.gz")) $existing_repos["knownrepo"][$repos]["amd64"] = true;
+                               else $existing_repos["knownrepo"][$repos]["amd64"] = false;
+                               if(glcas_fileExists($action1."/$key/Contents-i386.gz")) $existing_repos["knownrepo"][$repos]["i386"] = true;
+                               else $existing_repos["knownrepo"][$repos]["i386"] = false;
+                               $repos++;
+                               
                        }
                }
                $existing_repos["nrepos"] = $repos;