X-Git-Url: http://git.cyclocoop.org/%28?a=blobdiff_plain;f=maintenance%2Fhhvm%2FmakeRepo.php;h=f77f5b984f8b6fff1b7db3b523671bbb9820586d;hb=785960660f2a29f59eaaf760e71f675b9a71de8c;hp=2a102b24869e0a1b00baa07949f74d89d5840929;hpb=82524dc4da650c8017767a2648ed92dde98b8cae;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/hhvm/makeRepo.php b/maintenance/hhvm/makeRepo.php index 2a102b2486..f77f5b984f 100644 --- a/maintenance/hhvm/makeRepo.php +++ b/maintenance/hhvm/makeRepo.php @@ -95,9 +95,9 @@ class HHVMMakeRepo extends Maintenance { print "Found " . count( $files ) . " files in " . count( $dirs ) . " directories\n"; - $tmpDir = wfTempDir() . '/mw-make-repo' . mt_rand( 0, 1<<31 ); + $tmpDir = wfTempDir() . '/mw-make-repo' . mt_rand( 0, 1 << 31 ); if ( !mkdir( $tmpDir ) ) { - $this->error( 'Unable to create temporary directory', 1 ); + $this->fatalError( 'Unable to create temporary directory' ); } file_put_contents( "$tmpDir/file-list", implode( "\n", $files ) ); @@ -119,11 +119,11 @@ class HHVMMakeRepo extends Maintenance { passthru( $cmd, $ret ); if ( $ret ) { $this->cleanupTemp( $tmpDir ); - $this->error( "Error: HHVM returned error code $ret", 1 ); + $this->fatalError( "Error: HHVM returned error code $ret" ); } if ( !rename( "$tmpDir/hhvm.hhbc", $this->getOption( 'output' ) ) ) { $this->cleanupTemp( $tmpDir ); - $this->error( "Error: unable to rename output file", 1 ); + $this->fatalError( "Error: unable to rename output file" ); } $this->cleanupTemp( $tmpDir ); return 0;