Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
Enforces noninteractive shell for debian flavor
Browse files Browse the repository at this point in the history
  • Loading branch information
DjDCH committed Apr 2, 2017
1 parent bafbc0a commit 925aa8b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions updatewrapper/flavor/debian.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

class Debian(FlavorBase):
def update_cache(self):
return self.host.run('apt-get update')
return self.host.run('DEBIAN_FRONTEND=noninteractive apt-get update')

def check_update(self):
return self.host.run('apt-get --show-upgraded --assume-no upgrade')
return self.host.run('DEBIAN_FRONTEND=noninteractive apt-get --show-upgraded --assume-no upgrade')

def has_update(self, returncode, stdout, stderr):
return to_bytes('The following packages will be upgraded') in stdout

def perform_update(self):
return self.host.run('apt-get --show-upgraded --assume-yes upgrade')
return self.host.run('DEBIAN_FRONTEND=noninteractive apt-get --show-upgraded --assume-yes upgrade')

0 comments on commit 925aa8b

Please sign in to comment.