(bug 13353) Diff3 version checks are too strict. Just check for the phrase "GNU diffu...
authorChad Horohoe <demon@users.mediawiki.org>
Mon, 8 Nov 2010 14:16:22 +0000 (14:16 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Mon, 8 Nov 2010 14:16:22 +0000 (14:16 +0000)
RELEASE-NOTES
includes/installer/Installer.php

index ed9d3cb..60b5354 100644 (file)
@@ -407,6 +407,7 @@ LocalSettings.php. The specific bugs are listed below in the general notes.
   parameters
 * (bug 25175) HTML file cache now honor $wgCacheDirectory if
   $wgFileCacheDirectory is not set
+* (bug 13353) Diff3 version checks were too strict, did not detect working diff3
 
 === API changes in 1.17 ===
 * (bug 22738) Allow filtering by action type on query=logevent.
index 1222802..ed0728f 100644 (file)
@@ -623,7 +623,7 @@ abstract class Installer {
         */
        public function envCheckDiff3() {
                $names = array( "gdiff3", "diff3", "diff3.exe" );
-               $versionInfo = array( '$1 --version 2>&1', 'diff3 (GNU diffutils)' );
+               $versionInfo = array( '$1 --version 2>&1', 'GNU diffutils' );
 
                $diff3 = $this->locateExecutableInDefaultPaths( $names, $versionInfo );
 
@@ -916,7 +916,7 @@ abstract class Installer {
                                        $command = "\"$command\"";
                                }
                                $file = str_replace( '$1', $command, $versionInfo[0] );
-                               if ( strstr( wfShellExec( $file ), $versionInfo[1]) !== false ) {
+                               if ( strstr( wfShellExec( $file ), $versionInfo[1] ) !== false ) {
                                        return $command;
                                }
                        }