Commit: 37930384957a10aa16bdf5aad31d391cea92c09a Author: Anatol Belski <[email protected]> Wed, 2 Nov 2016 02:39:13 +0100 Parents: 29081ed8c0ee056d53156302a2896433546ef07f Branches: master pecl_legacy
Link: http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=37930384957a10aa16bdf5aad31d391cea92c09a Log: copy incoming into pre as well Changed paths: M client/script/pecl_rss.php Diff: diff --git a/client/script/pecl_rss.php b/client/script/pecl_rss.php index 283f514..e84dd82 100644 --- a/client/script/pecl_rss.php +++ b/client/script/pecl_rss.php @@ -68,6 +68,7 @@ if (!isset($latest->item)) { $curl = 'C:\apps\bin\curl.exe'; $get_url_tpl = 'https://pecl.php.net/get/{name}/{version}'; $download_dir = 'c:\pecl-in-pkg'; +$download_dir_pre = 'c:\pecl-in-snap-pre'; foreach($latest->item as $item) { if (!$item->title) { @@ -119,6 +120,9 @@ foreach($latest->item as $item) { if (!$suspects) { system($curl_cmd, $status); + /* This needs to be turned off after 7.1 GA */ + copy("$name-$version.tgz", "$download_dir_pre" . DIRECTORY_SEPARATOR . "$name-$version.tgz"); + if ($status) { echo "<$name-$version> download failed" . PHP_EOL; chdir($back); -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
