mrkipling/maraschino — pull request #151 by N3MIS15 (2012-06-15 10:31:07+00:00)
Title: Updater

checks if a .git folder exists, if so attempts to get current version and write it to version file. It then looks for a version.txt file in maraschino root. If version.txt does not exist the user will be prompted to update to get a known hash / current version.

when updating it determines whether or not to use git (pull origin branch), otherwise a tarball is downloaded and overwrites the existing files.

An update check is done on start and scheduled for every 6 hours, the values get stored in /maraschino/init.py.
The UI checks the values stored in init.py on refresh. To force a full check from UI i added a menu item.