cvs: pear-core /PEAR/PackageFile v1.php
| From: | Greg Beaver | Date: | Thu, 28 Oct 2004 04:01:53 +0000 |
| Subject: | cvs: pear-core /PEAR/PackageFile v1.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-1173@lists.php.net to get a copy of this message | ||
cellog Thu Oct 28 00:01:53 2004 EDT
Modified files:
/pear-core/PEAR/PackageFile v1.php
Log:
clean up added files so that they all use / as the
DIRECTORY_SEPARATOR
http://cvs.php.net/diff.php/pear-core/PEAR/PackageFile/v1.php?r1=1.24&r2=1.25&ty=u
Index: pear-core/PEAR/PackageFile/v1.php
diff -u pear-core/PEAR/PackageFile/v1.php:1.24 pear-core/PEAR/PackageFile/v1.php:1.25
--- pear-core/PEAR/PackageFile/v1.php:1.24 Wed Oct 27 23:47:49 2004
+++ pear-core/PEAR/PackageFile/v1.php Thu Oct 28 00:01:53 2004
@@ -711,7 +711,9 @@
function addFile($dir, $file, $attrs)
{
- $this->_packageInfo['filelist'][$dir . '/' . $file] = $attrs;
+ $file = $dir . '/' . $file;
+ $file = preg_replace('![\\/]+!', '/', $file);
+ $this->_packageInfo['filelist'][$file] = $attrs;
}
function getFilelist()