Some PEAR repositories does not works because of a wrong link parse.
parent
02bb72c1a9
commit
b030a36bf5
|
@ -52,6 +52,9 @@ class PearRepository extends ArrayRepository
|
||||||
|
|
||||||
foreach ($categories as $category) {
|
foreach ($categories as $category) {
|
||||||
$link = $category->getAttribute("xlink:href");
|
$link = $category->getAttribute("xlink:href");
|
||||||
|
if (0 !== strpos($link, '/')) {
|
||||||
|
$link = '/' . $link;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
$packagesLink = str_replace("info.xml", "packagesinfo.xml", $link);
|
$packagesLink = str_replace("info.xml", "packagesinfo.xml", $link);
|
||||||
$this->fetchPear2Packages($this->url . $packagesLink);
|
$this->fetchPear2Packages($this->url . $packagesLink);
|
||||||
|
|
Loading…
Reference in New Issue