mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	provision: Fix spelling of apt_dependencies_hash.
Also use a variable to avoid duplicating the path.
This commit is contained in:
		@@ -209,13 +209,13 @@ def main(options):
 | 
			
		||||
 | 
			
		||||
    new_apt_dependencies_hash = sha_sum.hexdigest()
 | 
			
		||||
    last_apt_dependencies_hash = None
 | 
			
		||||
 | 
			
		||||
    apt_hash_file_path = 'var/apt_dependencies_hash'
 | 
			
		||||
    try:
 | 
			
		||||
        hash_file = open('var/apt_dependenices_hash', 'r+')
 | 
			
		||||
        hash_file = open(apt_hash_file_path, 'r+')
 | 
			
		||||
        last_apt_dependencies_hash = hash_file.read()
 | 
			
		||||
    except IOError:
 | 
			
		||||
        run(['touch', 'var/apt_dependenices_hash'])
 | 
			
		||||
        hash_file = open('var/apt_dependenices_hash', 'r+')
 | 
			
		||||
        run(['touch', apt_hash_file_path])
 | 
			
		||||
        hash_file = open(apt_hash_file_path, 'r+')
 | 
			
		||||
 | 
			
		||||
    if (new_apt_dependencies_hash != last_apt_dependencies_hash):
 | 
			
		||||
        try:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user