Хранилища Subversion ant

Редакция

Редакция 652 | Весь файл | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS

Редакция 652 Редакция 653
Строка 607... Строка 607...
607
       $query .= "WHERE d.dist_id='".$data["dist_id"]."' AND v.version_id='".$data["version_id"]."'";
607
       $query .= "WHERE d.dist_id='".$data["dist_id"]."' AND v.version_id='".$data["version_id"]."'";
608
       $rq =& $this->db->query($query);
608
       $rq =& $this->db->query($query);
609
       $rq->fetchInto($dist);
609
       $rq->fetchInto($dist);
610
610
611
       header("content-type: text/plain\n\n");
611
       header("content-type: text/plain\n\n");
612
       $show = "# Список репозиториев для ".$this->secure->checkStr($dist["distname"],1)." ".$this->secure->checkStr($dist["version"],1)." ".$this->secure->checkStr($dist["vname"],1);
612
       $show = "# Список репозиториев для ".$this->secure->checkStr($dist["distname"],1)." ".$this->secure->checkStr($dist["version"],1)." ".$this->secure->checkStr($dist["vname"],1)."\n\n";
613
613
614
       // Извлекаем информацию о репозиториях и строим sources.list
614
       // Извлекаем информацию о репозиториях и строим sources.list
615
       if ($dist["type"]=="deb") {
615
       if ($dist["type"]=="deb") {
616
           // Базовый репозиторий
616
           // Базовый репозиторий
617
           $query  = "SELECT * FROM ".$this->prefix."repository r ";
617
           $query  = "SELECT * FROM ".$this->prefix."repository r ";
Строка 623... Строка 623...
623
           $query .= "JOIN ".$this->prefix."repscheme s ON r.scheme_id=s.scheme_id ";
623
           $query .= "JOIN ".$this->prefix."repscheme s ON r.scheme_id=s.scheme_id ";
624
           $query .= "WHERE v.version_id='".$data["version_id"]."' AND r.rtype_id='1'";
624
           $query .= "WHERE v.version_id='".$data["version_id"]."' AND r.rtype_id='1'";
625
           $rq =& $this->db->query($query);
625
           $rq =& $this->db->query($query);
626
           $rq->fetchInto($base);
626
           $rq->fetchInto($base);
627
           // Формируем type proto://host/folder
627
           // Формируем type proto://host/folder
-
 
628
           $show .= "# ".$this->secure->checkStr($base["rtype"],1)."\n";
628
           $show .= $this->secure->checkStr($dist["type"],1)." ".$this->secure->checkStr($dist["proto"],1).$this->secure->checkStr($dist["rhost"],1).$this->secure->checkStr($dist["rfolder"],1);
629
           $show .= $this->secure->checkStr($dist["type"],1)." ".$this->secure->checkStr($dist["proto"],1).$this->secure->checkStr($dist["rhost"],1).$this->secure->checkStr($dist["rfolder"],1);
629
           $dvname = str_replace("{DIST}",$this->secure->checkStr($dist["vcodename"],1),$this->secure->checkStr($dist["scheme"],1));
630
           $dvname = str_replace("{DIST}",$this->secure->checkStr($dist["vcodename"],1),$this->secure->checkStr($dist["scheme"],1));
630
           // Формируем distname
631
           // Формируем distname
631
           $show .= " ".$dvname." ";
632
           $show .= " ".$dvname." ";
632
           // Формируем sections
633
           // Формируем sections