From 925aa8b3a2eeb9e04d880453675c4edb01f85a73 Mon Sep 17 00:00:00 2001 From: DjDCH Date: Sun, 2 Apr 2017 13:21:23 -0400 Subject: [PATCH] Enforces noninteractive shell for debian flavor --- updatewrapper/flavor/debian.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/updatewrapper/flavor/debian.py b/updatewrapper/flavor/debian.py index 8c071fd..5da939a 100644 --- a/updatewrapper/flavor/debian.py +++ b/updatewrapper/flavor/debian.py @@ -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')