svn: /SVNROOT/ pre-commit

From: Date: Sat, 25 Jul 2009 14:42:05 +0000
Subject: svn: /SVNROOT/ pre-commit
Groups: php.cvs svn.migration 
Request: Send a blank email to svn-migration+get-549@lists.php.net to get a copy of this message
gwynne Sat, 25 Jul 2009 14:42:05 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=286303 Log: correctly match /pear2 as well as /pear for the use of PEAR semantics Changed paths: U SVNROOT/pre-commit Modified: SVNROOT/pre-commit =================================================================== --- SVNROOT/pre-commit 2009-07-22 15:10:15 UTC (rev 286302) +++ SVNROOT/pre-commit 2009-07-25 14:42:05 UTC (rev 286303) @@ -59,7 +59,7 @@ // Check commit against it $exit_val = 0; foreach ($commit_info['changed_paths'] as $changed_path => $path_actions) { - if (strncmp($changed_path, "pear/", strlen("pear/")) === 0) { + if (strncmp($changed_path, "pear", strlen("pear")) === 0) { $avail_lines = $pear_avail_db; debug("Using PEAR avail."); } else { @@ -112,11 +112,11 @@ } if ($exit_val) { - if (strncmp($last_path, "pear/", strlen("pear/")) === 0) { + if (strncmp($last_path, "pear", strlen("pear")) === 0) { $access_contact_email = 'pear-group@php.net'; - } else if (strncmp($last_path, "pecl/", strlen("pecl/")) === 0) { + } else if (strncmp($last_path, "pecl", strlen("pecl")) === 0) { $access_contact_email = 'pecl-group@php.net'; - } else if (strncmp($last_path, "phpdoc/", strlen("phpdoc/")) === 0) { + } else if (strncmp($last_path, "phpdoc", strlen("phpdoc")) === 0) { $access_contact_email = 'phpdoc@lists.php.net'; } else { $access_contact_email = 'group@php.net';

« previous svn.migration (#549) next »