cvs: phpdoc /scripts/iniupdate insert_db.php pecl.php update-all.php

From: Date: Fri, 28 Sep 2007 18:25:04 +0000
Subject: cvs: phpdoc /scripts/iniupdate insert_db.php pecl.php update-all.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-73@lists.php.net to get a copy of this message
nlopess Fri Sep 28 18:25:04 2007 UTC Modified files: /phpdoc/scripts/iniupdate insert_db.php pecl.php update-all.php Log: always use -P on cvs updates/checkouts when updating, bump to the correct branch (if needed) http://cvs.php.net/viewvc.cgi/phpdoc/scripts/iniupdate/insert_db.php?r1=1.9&r2=1.10&diff_format=u Index: phpdoc/scripts/iniupdate/insert_db.php diff -u phpdoc/scripts/iniupdate/insert_db.php:1.9 phpdoc/scripts/iniupdate/insert_db.php:1.10 --- phpdoc/scripts/iniupdate/insert_db.php:1.9 Fri Sep 21 15:57:20 2007 +++ phpdoc/scripts/iniupdate/insert_db.php Fri Sep 28 18:25:03 2007 @@ -63,7 +63,7 @@ $version = $m[2]; // if it has an entry already, just skip it - if (sqlite_single_query($idx, "SELECT COUNT(*) FROM pecl_changelog WHERE package='".sqlite_escape_string($pkg)."' AND version='$version'") > 1) { + if (sqlite_single_query($idx, "SELECT COUNT(*) FROM pecl_changelog WHERE package='".sqlite_escape_string($pkg)."' AND version='$version'") > 0) { continue; } http://cvs.php.net/viewvc.cgi/phpdoc/scripts/iniupdate/pecl.php?r1=1.9&r2=1.10&diff_format=u Index: phpdoc/scripts/iniupdate/pecl.php diff -u phpdoc/scripts/iniupdate/pecl.php:1.9 phpdoc/scripts/iniupdate/pecl.php:1.10 --- phpdoc/scripts/iniupdate/pecl.php:1.9 Fri Sep 21 15:44:27 2007 +++ phpdoc/scripts/iniupdate/pecl.php Fri Sep 28 18:25:03 2007 @@ -82,7 +82,7 @@ /** update PECL sources */ function update_pecl_sources() { - cvs -q -d :pserver:cvsread@cvs.php.net:/repository co pecl > /dev/null; + cvs -q -d :pserver:cvsread@cvs.php.net:/repository co -P pecl > /dev/null; foreach (get_pecl_packages() as $pkg) { $releases = get_pecl_releases($pkg); http://cvs.php.net/viewvc.cgi/phpdoc/scripts/iniupdate/update-all.php?r1=1.10&r2=1.11&diff_format=u Index: phpdoc/scripts/iniupdate/update-all.php diff -u phpdoc/scripts/iniupdate/update-all.php:1.10 phpdoc/scripts/iniupdate/update-all.php:1.11 --- phpdoc/scripts/iniupdate/update-all.php:1.10 Fri Sep 14 19:28:40 2007 +++ phpdoc/scripts/iniupdate/update-all.php Fri Sep 28 18:25:03 2007 @@ -109,11 +109,11 @@ // if the dir already exists, perform an update rather than a checkout if (is_dir($dir)) { - cd $dir && cvs -q up -dP; + cd $dir && cvs -q up -dP -r $branch; // zend dirs require special handling because cvs is damn stupid.. - if (is_dir("$dir/Zend")) cd $dir/Zend && cvs -q up -dP; - if (is_dir("$dir/ZendEngine2")) cd $dir/ZendEngine2 && cvs -q up -dP; + if (is_dir("$dir/Zend")) cd $dir/Zend && cvs -q up -dP -r $branch; + if (is_dir("$dir/ZendEngine2")) cd $dir/ZendEngine2 && cvs -q up -dP -r $branch; } else { cvs -q -d :pserver:cvsread@cvs.php.net:/repository co -d $dir -r $branch -P php-src; }

« previous php.doc.cvs (#73) next »