From: Michael Wallner Date: Fri, 9 Nov 2018 07:49:47 +0000 (+0100) Subject: fix issue caused by removing download link in X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=62cbc787a9321f23b469eea9e387672649333bd3;p=pharext%2Freplicator.pharext.org fix issue caused by removing download link in https://github.com/php/web-pecl/commit/7c59d928941d7912806371ee7121acfd781e2bc2 --- diff --git a/bin/pecl+sig b/bin/pecl+sig index c1c5443..e615e5b 100755 --- a/bin/pecl+sig +++ b/bin/pecl+sig @@ -72,9 +72,8 @@ function work($url, $dir) { if (($sxe = simplexml_load_file("https://pecl.php.net/feeds/$what.rss"))) { foreach ($sxe->item as $item) { - $url = str_replace("http://", "https://", (string) $item->link); - $pkg = basename(dirname($url)); - $ver = basename($url); + list($pkg, $ver) = explode(" ", (string) $item->title); + $url = sprintf("https://pecl.php.net/get/%s/%s", $pkg, $ver); $skp = sprintf("%s/../skip/%s/%s", __DIR__, $pkg, $ver); $ext = sprintf("%s/../public/phars/%s/%s-%s.ext.phar", __DIR__, $pkg, $pkg, $ver); $dir = dirname($ext);