1
0
Fork 0

Some PEAR repositories does not works because of a wrong link parse.

pull/298/head
Henrique Moody 2012-02-14 12:29:32 -02:00
parent 02bb72c1a9
commit b030a36bf5
1 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,9 @@ class PearRepository extends ArrayRepository
foreach ($categories as $category) {
$link = $category->getAttribute("xlink:href");
if (0 !== strpos($link, '/')) {
$link = '/' . $link;
}
try {
$packagesLink = str_replace("info.xml", "packagesinfo.xml", $link);
$this->fetchPear2Packages($this->url . $packagesLink);