OrsUpdater

Manages Dragonfly software updates

author:

Dragonfly Team

contact:

https://dragonfly.comet.tech

email:

support.dragonfly@comet.tech

organization:

Comet Technologies Canada Inc.

address:

460 Ste-Catherine Ouest, suite 600, Montréal, Québec, Canada, H3B 1A7

copyright:

Comet Technologies Canada Inc. All rights reserved 2023.

date:

Dec 29 2015 07:14

dragonflyVersion:

3.1.0.286 (D)

UUID:

935a5e86761d11e791a9448a5b5d70c0

Class Code

class OrsPythonPlugins.OrsUpdater.OrsUpdater.OrsUpdater(*args, **kwargs)
downloadInBackgroundThread(response, out, progress, start_position=0)

Download content in chunks with progress tracking and error handling.

extractFile(downloadPath: str, extractPath: str) str

Extract compressed files (zip or tar.zst)

Parameters:
  • downloadPath (str) – Path to the compressed file

  • extractPath (str) – Directory where files should be extracted

Return:

Empty string if successful, error message otherwise

Rtype:

str

getDownloadPathBasedOnOs()

Get the download directory path based on the operating system.

Return:

The directory path where files should be downloaded

Rtype:

str

classmethod getMainFormClass()

Gets the class of the main form

Returns:

output

run_installer_on_linux(file_to_run)

Run the installer script on Linux and clean up the extracted directory afterward

Parameters:

file_to_run (str) – Path to the installer script