Bug in PEAR_PackageFileManager Plugins for Windows Users

Wednesday, August 19 2009 @ 11:04 CDT

Contributed by: justin carlson

There's a bug in PEAR_PackageFileManager_Plugins for windows users. It won't recognize CVS directories, and the build fails. The bug has been accepted and verified, but no stable release is available yet.  

The error users receive states:
PEAR_PackageFileManager_Plugins Error: Directory "foo" is not a CVS directory (it must have the CVS/Entries file)


To fix this, you'll replace line 249 of File.php ( PEAR/PEAR/PackageFileManager/File.php )

$path = strtr($path, '\\', '/');


With the older code:
if (file_exists($path)) {
    $path = realpath($path);
}

That's all you need to do, your build should work again.

Comments (0)


tehuber.com
http://www.tehuber.com/article.php?story=20090819110409742