betterSIS Update Checker Code Documentation¶
BETTERSIS.UPDATE_CHECKER: contains function that help BetterSIS to check for updates
- bettersis.update_checker.check_updates(t_ghreleases_apiurl, t_version)[source]¶
Checks for updates.
- Parameters
t_version (str) – current version
t_ghreleases_apiurl (str) – api url for gh releases
- Return dict res
dictionary with success status, errors, update_version, update_available
- bettersis.update_checker.extract_version(version_string)[source]¶
Extract major, minor and path number from
<version_string>.- Parameters
version_string (str) – string with the version (ex. ‘1.0.0’)
- Return dict res
result of the operation (success boolean and parsed data)
- bettersis.update_checker.get_old_versions(t_ghreleases_apiurl)[source]¶
Returns a list of old versions.
First the function collects all the releases in a list and then removes the latest release from the list.
- Parameters
t_ghreleases_apiurl (str) – api url for gh releases
- Return list versions
old versions