cvs: pearweb /public_html go-pear

From: Date: Wed, 24 Jan 2007 00:53:36 +0000
Subject: cvs: pearweb /public_html go-pear
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-5361@lists.php.net to get a copy of this message
cellog Wed Jan 24 00:53:36 2007 UTC Modified files: /pearweb/public_html go-pear Log: fix go-pear to work with PEAR 1.5.0 http://cvs.php.net/viewvc.cgi/pearweb/public_html/go-pear?r1=1.101&r2=1.102&diff_format=u Index: pearweb/public_html/go-pear diff -u pearweb/public_html/go-pear:1.101 pearweb/public_html/go-pear:1.102 --- pearweb/public_html/go-pear:1.101 Wed Jan 24 00:15:12 2007 +++ pearweb/public_html/go-pear Wed Jan 24 00:53:36 2007 @@ -18,7 +18,7 @@ # | Pierre-Alain Joye <pierre@php.net> | # | Greg Beaver <cellog@php.net> | # +----------------------------------------------------------------------+ -# $Id: go-pear,v 1.101 2007/01/24 00:15:12 cellog Exp $ +# $Id: go-pear,v 1.102 2007/01/24 00:53:36 cellog Exp $ # # Automatically download all the files needed to run the "pear" command # (the PEAR package installer). Requires PHP 4.1.0 or newer. @@ -710,6 +710,19 @@ } print "ok\n"; +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/viewcvs.cgi/pear-core/Console/Getopt.php?view=co&pathrev=PEAR_1_4"; +mkdir('Console', 0700); +if (in_array('Getopt.php', $local_dir)) { + copy(dirname(__FILE__).'/go-pear-bundle/Getopt.php', 'Console/Getopt.php'); + echo "(local) "; +} else { + download_url($url, 'Console/Getopt.php', $http_proxy); + echo "(remote) "; +} +print "ok\n"; + if ($install_pfc) { foreach ($pfc_packages as $pkg) { foreach($local_dir as $file) { @@ -736,12 +749,22 @@ PEAR::setErrorHandling(PEAR_ERROR_DIE, "\n%s\n"); print 'Extracting installer..................'; + +$dot = strrpos($tarball['Structures_Graph'], '.'); +$pkg = substr($tarball['Structures_Graph'], 0, $dot); +$ext = substr($tarball['Structures_Graph'], $dot + 1); + +include_once 'Archive/Tar.php'; + +$tar = &new Archive_Tar($tarball['Structures_Graph'], $have_gzip); +if (!$tar->extractModify($ptmp, $pkg)) { + bail("failed!\n"); +} + $dot = strrpos($tarball['PEAR'], '.'); $pkg = substr($tarball['PEAR'], 0, $dot); $ext = substr($tarball['PEAR'], $dot + 1); -include_once 'Archive/Tar.php'; - $tar = &new Archive_Tar($tarball['PEAR'], $have_gzip); if (!$tar->extractModify($ptmp, $pkg)) { bail("failed!\n");

« previous php.pear.core (#5361) next »