B2G/gecko/toolkit/mozapps/update/test/shared.js
/**
 * Writes the current update version to a file in the patch directory,
 * indicating to the patching system the version of the update.
 *
 * @param  aVersion
 *         The version value to write.
 */
Writes the current update version to a file in the patch directory,
indicating to the patching system the version of the update.

@param  aVersion
The version value to write.
Writes the current update version to a file in the patch directory indicating to the patching system the version of the update . @param aVersion The version value to write .
function writeVersionFile(aVersion) {
  var file = getUpdatesDir();
  file.append("0");
  file.append(FILE_UPDATE_VERSION);
  aVersion += "\n";
  writeFile(file, aVersion);
}
function writeVersionFile ( aVersion ) { var file = getUpdatesDir ( ) ; file . append ( "0" ) ; file . append ( FILE_UPDATE_VERSION ) ; aVersion += "\n" ; writeFile ( file , aVersion ) ; }
Writes the current update version to a file in the patch directory,
 indicating to the patching system the version of the update.
Writes the current update version to a file in the patch directory indicating to the patching system the version of the update .