Don't do wildcard imports

This commit is contained in:
Alexander Todorov 2017-10-12 17:51:06 +03:00 committed by Brian C. Lane
parent e9e6e5701e
commit 2cd4f73177
2 changed files with 5 additions and 5 deletions

View File

@ -40,7 +40,7 @@ import yum
import pylorax.ltmpl as ltmpl
import pylorax.imgutils as imgutils
from pylorax.sysutils import *
from pylorax.sysutils import joinpaths, linktree, remove
from rpmUtils.arch import getBaseArch
from pylorax.treebuilder import RuntimeBuilder, TreeBuilder

View File

@ -29,7 +29,7 @@ from subprocess import CalledProcessError
import shutil
from pylorax.sysutils import joinpaths, cpfile, mvfile, replace, remove
from pylorax.yumhelper import * # Lorax*Callback classes
from pylorax import yumhelper
from pylorax.base import DataHolder
from pylorax.executils import runcmd, runcmd_output
from pylorax.imgutils import mkcpio
@ -514,9 +514,9 @@ class LoraxTemplateRunner(object):
commands.
'''
self.yum.buildTransaction()
self.yum.repos.setProgressBar(LoraxDownloadCallback())
self.yum.processTransaction(callback=LoraxTransactionCallback(),
rpmDisplay=LoraxRpmCallback())
self.yum.repos.setProgressBar(yumhelper.LoraxDownloadCallback())
self.yum.processTransaction(callback=yumhelper.LoraxTransactionCallback(),
rpmDisplay=yumhelper.LoraxRpmCallback())
# verify if all packages that were supposed to be installed,
# are really installed