|
NAMEFirefox::Marionette::UpdateStatus - Represents the resulting status of an Firefox updateVERSIONVersion 1.17SYNOPSISuse Firefox::Marionette(); use v5.10; my $firefox = Firefox::Marionette->new(); my $status = $firefox->update(); while($status->successful()) { $status = $firefox->update(); } say "Firefox has been upgraded to " . $status->display_version(); DESCRIPTIONThis module handles the implementation of the status of a Firefox update using the Marionette protocolSUBROUTINES/METHODSnewaccepts a hash as a parameter. Allowed keys are below;
This method returns a new update status object. app_versionreturns application version of this update.build_idreturns the build id <https://developer.mozilla.org/en-US/docs/Web/API/Navigator/buildID> of this update. Used to determine a particular build, down to the hour, minute and second of its creation. This allows the system to differentiate between several nightly builds with the same |version|.channelreturns the channel <http://kb.mozillazine.org/App.update.channel> used to retrieve this update from the Update Service.details_urlreturns a URI offering details about the content of this update. This page is intended to summarise the differences between this update and the previous, which also links to the release notes.display_versionreturns a string to display in the user interface for the version. If you want a real version number use app_version.elevation_failurereturns a boolean to indicate if an elevation failure has been encountered for this update.error_codereturns a numeric error code <https://hg.mozilla.org/mozilla-central/file/tip/toolkit/mozapps/update/common/updatererrors.h> that conveys additional information about the state of a failed update. If the update is not in the "failed" state the value is zero.install_datereturns when the update was installed.is_complete_updatereturns a boolean to indicate if the update is a complete replacement of the user's existing installation or a patch representing the difference between the new version and the previous version.namereturns name of the update, which should look like "<Application Name> <Update Version>"number_of_updatesreturns the number of updates available (seems to always be 1).patch_countreturns the number of patches supplied by this update.previous_app_versionreturns application version prior to the application being updated.prompt_wait_timereturns the amount of time in seconds before prompting the user to apply an update. If not specified, the value of app.update.promptWaitTime <http://kb.mozillazine.org/App.update.promptWaitTime> will be used.selected_patchreturns the currently selected patch for this update.service_urlreturns a URI for the Update Service that supplied this update.status_textreturns the message associated with this update, if any.successfulreturns a boolean to indicate if an update has been successfully applied.typereturns either 'minor', 'partial', which means a binary difference between two application versions or 'complete' which is a complete patch containing all of the replacement files to update to the new versionunsupportedreturns a boolean to show if the update is supported on this system.update_statereturns the state of the selected patch;
The most usual state is "pending" update_status_codereturns a code describing the state of the patch.DIAGNOSTICSNone.CONFIGURATION AND ENVIRONMENTFirefox::Marionette::UpdateStatus requires no configuration files or environment variables.DEPENDENCIESNone.INCOMPATIBILITIESNone reported.BUGS AND LIMITATIONSTo report a bug, or view the current list of bugs, please visit <https://github.com/david-dick/firefox-marionette/issues>AUTHORDavid Dick "<ddick@cpan.org>"LICENSE AND COPYRIGHTCopyright (c) 2021, David Dick "<ddick@cpan.org>". All rights reserved.This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See "perlartistic" in perlartistic. DISCLAIMER OF WARRANTYBECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
Visit the GSP FreeBSD Man Page Interface. |