svn: /SVNROOT/ pre-commit
[email protected] (Gwynne Raskind) Sat, 25 Jul 2009 14:42:05 +0000
| Newsgroups | php.cvs,svn.migration |
|---|---|
| Message-ID | <[email protected]> |
--88bd2ed0cb6419acda69a42c7d45a2590e3ad731
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
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 = '[email protected]';
- } else if (strncmp($last_path, "pecl/", strlen("pecl/")) === 0) {
+ } else if (strncmp($last_path, "pecl", strlen("pecl")) === 0) {
$access_contact_email = '[email protected]';
- } else if (strncmp($last_path, "phpdoc/", strlen("phpdoc/")) === 0) {
+ } else if (strncmp($last_path, "phpdoc", strlen("phpdoc")) === 0) {
$access_contact_email = '[email protected]';
} else {
$access_contact_email = '[email protected]';
--88bd2ed0cb6419acda69a42c7d45a2590e3ad731--