Хранилища Subversion ant

Сравнить редакции

Не учитывать пробелы Редакция 654 → Редакция 655

/branches/ant/0.9.x/lib/core.php
645,6 → 645,42
while ($rq->fetchInto($sections)) {
$show .= $sections["secname"]." ";
}
$show .= "\n\n";
 
// Репозитории обновлений
$query = "SELECT * FROM ".$this->prefix."repository r ";
$query .= "JOIN ".$this->prefix."protos p ON r.proto_id=p.proto_id ";
$query .= "JOIN ".$this->prefix."rephost h ON r.rhost_id=h.rhost_id ";
$query .= "JOIN ".$this->prefix."repfolder f ON r.rfolder_id=f.rfolder_id ";
$query .= "JOIN ".$this->prefix."version v ON r.version=v.version_id ";
$query .= "JOIN ".$this->prefix."rtype t ON r.rtype_id=t.rtype_id ";
$query .= "JOIN ".$this->prefix."repscheme s ON r.scheme_id=s.scheme_id ";
$query .= "WHERE v.version_id='".$data["version_id"]."' AND r.rtype_id='2'";
$rq =& $this->db->query($query);
while ($rq->fetchInto($updates)) {
// Формируем type proto://host/folder
$show .= "# ".$this->secure->checkStr($updates["rtype"],1)."\n";
$show .= $this->secure->checkStr($dist["type"],1)." ".$this->secure->checkStr($updates["proto"],1).$this->secure->checkStr($updates["rhost"],1).$this->secure->checkStr($updates["rfolder"],1);
$dvname = str_replace("{DIST}",$this->secure->checkStr($dist["vcodename"],1),$this->secure->checkStr($updates["scheme"],1));
// Формируем distname
$show .= " ".$dvname." ";
// Формируем sections
$query = "SELECT * FROM ".$this->prefix."section s ";
$query .= "JOIN ".$this->prefix."sect2rep r ON s.sect_id=r.sect_id ";
$query .= "WHERE r.rep_id='".$base["rep_id"]."' AND (";
for($i=0;$i<count($data["section"]);$i++) {
$query .= "s.sect_id='".$data["section"][$i]."' ";
if ($i<count($data["section"])-1) {
$query .= " OR ";
}
}
$query .= ")";
$rq =& $this->db->query($query);
while ($rq->fetchInto($sections)) {
$show .= $sections["secname"]." ";
}
$show .= "\n";
}
$show .= "\n";
 
}