From 95f0a167e04523c42d855e7751e787643f91056a Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 13 May 2013 10:37:03 -0700 Subject: [PATCH] Clear stat cache before determining local copy error message. * This makes it clearer if the listings are just wonky. Change-Id: I78078fb9fac88b17e010b0eb990dbbeb83ea48f1 --- maintenance/copyFileBackend.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maintenance/copyFileBackend.php b/maintenance/copyFileBackend.php index fddc72c4e5..1c592a9c10 100644 --- a/maintenance/copyFileBackend.php +++ b/maintenance/copyFileBackend.php @@ -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." ); } -- 2.20.1