This repository was archived by the owner on Mar 13, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 33from updatewrapper .flavor import FlavorBase
44
55
6+ ENV_VARS = 'DEBIAN_FRONTEND=noninteractive APT_LISTCHANGES_FRONTEND=text '
7+
8+
69class Debian (FlavorBase ):
710 def __init__ (self , host , dist_upgrade = False , ** kwargs ):
811 self .command = 'dist-upgrade' if dist_upgrade else 'upgrade'
912
1013 super ().__init__ (host )
1114
1215 def update_cache (self ):
13- return self .host .run ('DEBIAN_FRONTEND=noninteractive apt-get update' )
16+ return self .host .run (ENV_VARS + ' apt-get update' )
1417
1518 def check_update (self ):
16- return self .host .run ('DEBIAN_FRONTEND=noninteractive apt-get --show-upgraded --assume-no ' + self .command )
19+ return self .host .run (ENV_VARS + ' apt-get --show-upgraded --assume-no ' + self .command )
1720
1821 def has_update (self , returncode , stdout , stderr ):
1922 return to_bytes ('The following packages will be upgraded' ) in stdout
2023
2124 def perform_update (self ):
22- return self .host .run ('DEBIAN_FRONTEND=noninteractive apt-get --show-upgraded --assume-yes ' + self .command )
25+ return self .host .run (ENV_VARS + ' apt-get --show-upgraded --assume-yes ' + self .command )
You can’t perform that action at this time.
0 commit comments