Add dpkg options to force 'confold' where applicable
i.e. what I tried to do a moment ago, I now have hopefully achieved...
This commit is contained in:
		
							parent
							
								
									394dd2e38e
								
							
						
					
					
						commit
						372234f583
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -82,7 +82,10 @@ def dist_upgrade(frontend='noninteractive'): | |||
|     Perform a full ``apt-get dist-upgrade`` operation. | ||||
|     """ | ||||
|     update() | ||||
|     sudo('DEBIAN_FRONTEND={} apt-get --assume-yes dist-upgrade'.format(frontend)) | ||||
|     options = '' | ||||
|     if frontend == 'noninteractive': | ||||
|         options = '--option Dpkg::Options::="--force-confdef" --option Dpkg::Options::="--force-confold"' | ||||
|     sudo('DEBIAN_FRONTEND={} apt-get --assume-yes {} dist-upgrade'.format(frontend, options)) | ||||
| 
 | ||||
| 
 | ||||
| def configure_listchanges(): | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar