B2G/gecko/toolkit/mozapps/update/test/shared.js
/**
 * Writes the current update operation/state to a file in the patch
 * directory, indicating to the patching system that operations need
 * to be performed.
 *
 * @param  aStatus
 *         The status value to write.
 */
Writes the current update operation/state to a file in the patch
directory, indicating to the patching system that operations need
to be performed.

@param  aStatus
The status value to write.
Writes the current update operation / state to a file in the patch directory indicating to the patching system that operations need to be performed . @param aStatus The status value to write .
function writeStatusFile(aStatus) {
  var file = getUpdatesDir();
  file.append("0");
  file.append(FILE_UPDATE_STATUS);
  aStatus += "\n";
  writeFile(file, aStatus);
}
function writeStatusFile ( aStatus ) { var file = getUpdatesDir ( ) ; file . append ( "0" ) ; file . append ( FILE_UPDATE_STATUS ) ; aStatus += "\n" ; writeFile ( file , aStatus ) ; }
Writes the current update operation/state to a file in the patch
 directory, indicating to the patching system that operations need
 to be performed.
Writes the current update operation / state to a file in the patch directory indicating to the patching system that operations need to be performed .