cvs: pearweb /public_html go-pear
| From: | Pierre-Alain Joye | Date: | Sat, 22 Apr 2006 02:36:47 +0000 |
| Subject: | cvs: pearweb /public_html go-pear | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-4735@lists.php.net to get a copy of this message | ||
pajoye Sat Apr 22 02:36:47 2006 UTC
Modified files:
/pearweb/public_html go-pear
Log:
- force the revision to PEAR_1_4 if we got a state instead of a version
number
http://cvs.php.net/viewcvs.cgi/pearweb/public_html/go-pear?r1=1.85&r2=1.86&diff_format=u
Index: pearweb/public_html/go-pear
diff -u pearweb/public_html/go-pear:1.85 pearweb/public_html/go-pear:1.86
--- pearweb/public_html/go-pear:1.85 Sat Apr 22 02:13:36 2006
+++ pearweb/public_html/go-pear Sat Apr 22 02:36:47 2006
@@ -18,7 +18,7 @@
# | Pierre-Alain Joye <pierre@php.net> |
# | Greg Beaver <cellog@php.net> |
# +----------------------------------------------------------------------+
-# $Id: go-pear,v 1.85 2006/04/22 02:13:36 pajoye Exp $
+# $Id: go-pear,v 1.86 2006/04/22 02:36:47 pajoye Exp $
#
# Automatically download all the files needed to run the "pear" command
# (the PEAR package installer). Requires PHP 4.1.0 or newer.
@@ -605,7 +605,7 @@
if (file_exists(dirname(__FILE__).'/go-pear-bundle') ||
is_dir(dirname(__FILE__).'/go-pear-bundle')) {
$dh = @opendir(dirname(__FILE__).'/go-pear-bundle');
} else {
- $dh = false;
+ $dh = false;
}
$local_dir = array();
@@ -638,8 +638,17 @@
}
print 'Bootstrapping: PEAR...................';
-$r = 'RELEASE_' . ereg_replace('[^A-Za-z0-9]', '_',
substr(substr($tarball['PEAR'], 5), 0, -4));
-$url = "http://cvs.php.net/viewcvs.cgi/*checkout*/pear-core/PEAR.php?pathrev=$r";
+$rev = ereg_replace('[^A-Za-z0-9]', '_',
substr(substr($tarball['PEAR'], 5), 0, -4));
+
+/* Force the revision if we got something like "stable" as version */
+if ((int)substr($rev, 0, 1) != 1) {
+ $rev = "PEAR_1_4";
+} else {
+ $rev = 'RELEASE_' . $rev;
+}
+
+$url = "http://cvs.php.net/viewcvs.cgi/*checkout*/pear-core/PEAR.php?pathrev=$rev";
+
if (in_array('PEAR.php', $local_dir)) {
copy(dirname(__FILE__).'/go-pear-bundle/PEAR.php', 'PEAR.php');
echo "(local) ";