Use log_check_call instead of subprocess module

This commit is contained in:
Tiago Ilieve 2014-04-01 18:11:52 -03:00
parent 60dbbee731
commit f3abb0d85c

View file

@ -1,6 +1,7 @@
from base import Task
from common import phases
from common.tasks import apt
from common.tools import log_check_call
class AddManifestPackages(Task):
@ -74,7 +75,6 @@ class InstallPackages(Task):
@classmethod
def install_local(cls, info, local_packages):
from shutil import copy
from common.tools import log_check_call
import os
absolute_package_paths = []
@ -107,9 +107,6 @@ class AddTaskselStandardPackages(Task):
@classmethod
def run(cls, info):
import subprocess
tasksel_packages = subprocess.check_output(['chroot', info.root,
'tasksel', '--task-packages',
'standard']).strip().split('\n')
tasksel_packages = log_check_call(['chroot', info.root, 'tasksel', '--task-packages', 'standard'])
for pkg in tasksel_packages:
info.packages.add(pkg)