cvs: pearweb /public_html go-pear

From: Date: Thu, 09 Sep 2004 06:24:44 +0000
Subject: cvs: pearweb /public_html go-pear
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-23744@lists.php.net to get a copy of this message
cellog Thu Sep 9 02:24:44 2004 EDT Modified files: /pearweb/public_html go-pear Log: Always make go-pear download stable core packages Change to pear-core so that when the next stable version is released, it comes from the right place http://cvs.php.net/diff.php/pearweb/public_html/go-pear?r1=1.65&r2=1.66&ty=u Index: pearweb/public_html/go-pear diff -u pearweb/public_html/go-pear:1.65 pearweb/public_html/go-pear:1.66 --- pearweb/public_html/go-pear:1.65 Thu Aug 12 11:22:27 2004 +++ pearweb/public_html/go-pear Thu Sep 9 02:24:44 2004 @@ -17,7 +17,7 @@ # | Christian Dickmann <dickmann@php.net> | # | Pierre-Alain Joye <pajoye@pearfr.org> | # +----------------------------------------------------------------------+ -# $Id: go-pear,v 1.65 2004/08/12 15:22:27 danielc Exp $ +# $Id: go-pear,v 1.66 2004/09/09 06:24:44 cellog Exp $ # # Automatically download all the files needed to run the "pear" command # (the PEAR package installer). Requires PHP 4.1.0 or newer. @@ -140,10 +140,10 @@ } $installer_packages = array( - 'PEAR', - 'Archive_Tar', - 'Console_Getopt', - 'XML_RPC' + 'PEAR-stable', + 'Archive_Tar-stable', + 'Console_Getopt-stable', + 'XML_RPC-stable' ); if (WEBINSTALLER) { $installer_packages[] = 'Pager'; @@ -557,7 +557,8 @@ foreach ($installer_packages as $pkg) { foreach($local_dir as $file) { - if (substr($file, 0, strlen($pkg)) == $pkg) { + if (substr($file, 0, strlen(str_replace('-stable', '', $pkg))) == str_replace('-stable', '', $pkg)) { + $pkg = str_replace('-stable', '', $pkg); echo str_pad("Using local package: $pkg", max(38,21+strlen($pkg)+4), '.'); copy(dirname(__FILE__).'/go-pear-bundle/'.$file, $file); $tarball[$pkg] = $file; @@ -570,6 +571,7 @@ $msg = str_pad("Downloading package: $pkg", max(38,21+strlen($pkg)+4), '.'); print $msg; $url = sprintf($urltemplate, $pkg); + $pkg = str_replace('-stable', '', $pkg); $tarball[$pkg] = download_url($url, null, $http_proxy); print "ok\n"; displayHTMLProgress($progress += round(65 / count($to_install))); @@ -577,7 +579,7 @@ print 'Bootstrapping: PEAR...................'; $r = 'RELEASE_' . ereg_replace('[^A-Za-z0-9]', '_', substr(substr($tarball['PEAR'], 5), 0, -4)); -$url = "http://cvs.php.net/co.php/php-src/pear/PEAR.php?p=1&r=$r"; +$url = "http://cvs.php.net/co.php/pear-core/PEAR.php?p=1&r=$r"; if (in_array('PEAR.php', $local_dir)) { copy(dirname(__FILE__).'/go-pear-bundle/PEAR.php', 'PEAR.php'); echo "(local) "; @@ -605,7 +607,7 @@ print 'Bootstrapping: Console_Getopt.........'; $r = 'RELEASE_' . ereg_replace('[^A-Za-z0-9]', '_', substr(substr($tarball['Console_Getopt'], 15), 0, -4)); -$url = "http://cvs.php.net/co.php/php-src/pear/Console/Getopt.php?p=1&r=$r"; +$url = "http://cvs.php.net/co.php/pear-core/Console/Getopt.php?p=1&r=$r"; mkdir('Console', 0700); if (in_array('Getopt.php', $local_dir)) { copy(dirname(__FILE__).'/go-pear-bundle/Getopt.php', 'Console/Getopt.php');

« previous php.pear.cvs (#23744) next »