From 62cbc787a9321f23b469eea9e387672649333bd3 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 9 Nov 2018 08:49:47 +0100 Subject: [PATCH] fix issue caused by removing download link in https://github.com/php/web-pecl/commit/7c59d928941d7912806371ee7121acfd781e2bc2 --- bin/pecl+sig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); -- 2.30.2