#NEWLINE# def upgrade( chroot ) : #NEWLINE# #INDENT# print ( 'Schrooting' ) #NEWLINE# with schroot ( chroot ) as chroot : #NEWLINE# #INDENT# print ( 'updating' ) #NEWLINE# ( out , err , ret ) = chroot . run ( [ 'apt-get' , 'update' ] , user = 'root' ) #NEWLINE# print ( out , err ) #NEWLINE# ( out , err , ret ) = chroot . run ( [ 'apt-get' , 'upgrade' , '-y' ] , user = 'root' ) #NEWLINE# print ( out , err ) #NEWLINE# ( out , err , ret ) = chroot . run ( [ 'apt-get' , 'dist-upgrade' , '-y' ] , user = 'root' ) #NEWLINE# print ( out , err )