mirror of
				https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
				synced 2025-11-03 18:14:11 +00:00 
			
		
		
		
	boottest - Only make the manifest directory if it doesn't already exist.
This commit is contained in:
		
						commit
						92a2156b10
					
				@ -79,7 +79,8 @@ class TouchManifest(object):
 | 
				
			|||||||
        # Only [re]create the manifest file if one was successfully downloaded
 | 
					        # Only [re]create the manifest file if one was successfully downloaded
 | 
				
			||||||
        # this allows for an existing image to be used if the download fails.
 | 
					        # this allows for an existing image to be used if the download fails.
 | 
				
			||||||
        if response.code == 200:
 | 
					        if response.code == 200:
 | 
				
			||||||
            os.makedirs(os.path.dirname(self.path))
 | 
					            if not os.path.exists(os.path.dirname(self.path)):
 | 
				
			||||||
 | 
					                os.makedirs(os.path.dirname(self.path))
 | 
				
			||||||
            with open(self.path, 'w') as fp:
 | 
					            with open(self.path, 'w') as fp:
 | 
				
			||||||
                fp.write(response.read())
 | 
					                fp.write(response.read())
 | 
				
			||||||
            success = True
 | 
					            success = True
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user