SOURCES: rpm-php-provides.php - fix peardeps finding

glen glen at pld-linux.org
Wed Oct 22 02:18:25 CEST 2008


Author: glen                         Date: Wed Oct 22 00:18:25 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix peardeps finding

---- Files affected:
SOURCES:
   rpm-php-provides.php (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SOURCES/rpm-php-provides.php
diff -u SOURCES/rpm-php-provides.php:1.2 SOURCES/rpm-php-provides.php:1.3
--- SOURCES/rpm-php-provides.php:1.2	Wed Oct 22 02:11:45 2008
+++ SOURCES/rpm-php-provides.php	Wed Oct 22 02:18:19 2008
@@ -14,7 +14,7 @@
  */
 function peardeps($files) {
 	// all files must begin with $RPM_BUILD_ROOT%{php_pear_dir}
-	$prefix = RPM_BUILD_ROOT. PATH_SEPARATOR . PHP_PEAR_DIR;
+	$prefix = RPM_BUILD_ROOT. PHP_PEAR_DIR . DIRECTORY_SEPARATOR;
 	$length = strlen($prefix);
 	foreach ($files as $f) {
 		if (substr($f, 0, $length) != $prefix) {
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/rpm-php-provides.php?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list