Bug in PEAR_PackageFileManager Plugins for Windows Users

by justin carlson on 08/19/2009
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.

Trackback

Trackback URL for this entry: http://www.tehuber.com/trackback.php?id=20090819110409742

No trackback comments for this entry.
Bug in PEAR_PackageFileManager Plugins for Windows Users | 0 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.