Lines Matching full:commit
29 # NAME of the file that stores commit info in the cloud
59 Update if the commit hash doesn't match
67 """ Check if chameleond commit hash is the expected one"""
69 commit = peer.get_bt_commit_hash()
71 logging.error('Getting the commit hash failed. Updating the peer %s',
75 logging.debug('commit %s found on peer %s', commit, peer.host)
76 return commit == latest_commit
143 @params latest_commit: target git commit
160 return False, 'Commit not updated after upgrade'
202 """ Get the latest commit
204 Download the file containing the latest commit and
206 @returns (True,commit) in case of success ; (False, None) in case of failure
209 commit = None
217 logging.error('Downloading commit file failed with %s',
223 commit = content.strip('\n').strip()
225 logging.info('latest commit is %s', commit)
226 if commit is None:
229 return (True, commit)
235 def download_installation_files(host, commit): argument
237 src_path = GS_PUBLIC + BUNDLE_TEMPLATE.format(commit)
238 dest_path = '/tmp/' + BUNDLE_TEMPLATE.format(commit)
258 def cleanup(host, commit): argument
261 dest_path = '/tmp/' + BUNDLE_TEMPLATE.format(commit)