Made copyFileBackend.php skip files that cannot be copied instead of stopping.
authorAaron Schulz <aschulz@wikimedia.org>
Sun, 12 May 2013 01:10:40 +0000 (18:10 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Sun, 12 May 2013 01:14:42 +0000 (01:14 +0000)
Change-Id: Ib15efdd35f38adefe3db500b4b6e5a71ea1858c7

maintenance/copyFileBackend.php

index 6846edf..736910a 100644 (file)
@@ -192,8 +192,9 @@ class CopyFileBackend extends Maintenance {
                                if ( $src->fileExists( array( 'src' => $srcPath ) ) === false ) {
                                        $this->error( "File '$srcPath' was listed be must have been deleted." );
                                } else {
-                                       $this->error( "Could not get local copy of $srcPath.", 1 ); // die
+                                       $this->error( "Could not get local copy of $srcPath." );
                                }
+                               continue;
                        } elseif ( !$fsFile->exists() ) {
                                // FSFileBackends just return the path for getLocalReference() and paths with
                                // illegal slashes may get normalized to a different path. This can cause the