Clear stat cache before determining local copy error message.
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 13 May 2013 17:37:03 +0000 (10:37 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 13 May 2013 20:14:22 +0000 (13:14 -0700)
* This makes it clearer if the listings are just wonky.

Change-Id: I78078fb9fac88b17e010b0eb990dbbeb83ea48f1

maintenance/copyFileBackend.php

index fddc72c..1c592a9 100644 (file)
@@ -190,9 +190,9 @@ class CopyFileBackend extends Maintenance {
                                ? $fsFiles[$srcPath]
                                : $src->getLocalReference( array( 'src' => $srcPath, 'latest' => 1 ) );
                        if ( !$fsFile ) {
-                               if ( $src->fileExists( array( 'src' => $srcPath ) ) === false ) {
+                               $src->clearCache( array( $srcPath ) );
+                               if ( $src->fileExists( array( 'src' => $srcPath, 'latest' => 1 ) ) === false ) {
                                        $this->error( "$wikiId: File '$srcPath' was listed but does not exist." );
-                                       continue;
                                } else {
                                        $this->error( "$wikiId: Could not get local copy of $srcPath." );
                                }