X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=bin%2Fpecl;fp=bin%2Fpecl;h=10fb3bdd8850acb9d81c7bf8be9d6dabf06d957c;hb=9645b1a3d2553e72665fa952b2e8c0a05a891dd9;hp=a696acb7c7620156e4485ccdf40d72d226209e7f;hpb=a8e29d53480b20bcbc0dadcba046d908a85c9b91;p=pharext%2Freplicator.pharext.org diff --git a/bin/pecl b/bin/pecl index a696acb..10fb3bd 100755 --- a/bin/pecl +++ b/bin/pecl @@ -41,6 +41,13 @@ function wait(&$pids) { return $pid > 0; }; +function info($pkg, $dir) { + $inf = file_get_contents("https://pecl.php.net/rest/p/$pkg/info.xml"); + if ($inf) { + file_put_contents("$dir/info.xml", $inf); + } +} + function work($url, $dir) { is_dir($dir) || mkdir($dir, 0777, true); require_once __DIR__."/../vendor/autoload.php"; @@ -69,6 +76,7 @@ if (($sxe = simplexml_load_file("http://pecl.php.net/feeds/$what.rss"))) { exit; case 0: work($url, $dir); + info($pgk, $dir); exit; default: $pids[$pid] = compact("url", "pkg", "ver", "skp", "ext", "dir");