[Pkg-debile-commits] [debile-slave] 01/02: Avoid adequate hanging on debconf
Léo Cavaillé
leo.cavaille-guest at alioth.debian.org
Wed Oct 16 16:25:02 UTC 2013
This is an automated email from the git hooks/post-receive script.
leo.cavaille-guest pushed a commit to branch master
in repository debile-slave.
commit ec486d3af54abf6cdbb48de413e43101493a0e74
Author: Léo Cavaillé <leo at cavaille.net>
Date: Wed Oct 16 18:23:56 2013 +0200
Avoid adequate hanging on debconf
---
debileslave/runners/adequate.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/debileslave/runners/adequate.py b/debileslave/runners/adequate.py
index 2cee587..540009d 100644
--- a/debileslave/runners/adequate.py
+++ b/debileslave/runners/adequate.py
@@ -13,14 +13,15 @@ def adequate(chroot_name, target, package_name, analysis):
'apt-get', 'install', '-y', 'adequate'
], user='root')
+ os.environ['DEBIAN_FRONTEND'] = 'noninteractive'
out, err, ret = chroot.run([
'dpkg', '-i',
"/tmp/%s" % target
- ], user='root', return_codes=(0, 1))
+ ], user='root', return_codes=(0, 1), preserve_environment=True)
out, err, ret = chroot.run([
'apt-get', 'install', '-y', '-f'
- ], user='root')
+ ], user='root', preserve_environment=True)
out, err, ret = chroot.run(['adequate', package_name])
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-slave.git
More information about the Pkg-debile-commits
mailing list