Move __collectRepos() call to Lorax.run()

This commit is contained in:
David Cantrell 2008-10-09 22:11:13 -10:00
parent 010f7e5f88
commit bdbf05ecd5

View File

@ -41,12 +41,7 @@ class Lorax:
self.conf['tmpdir'] = tempfile.gettempdir()
self.conf['datadir'] = '/usr/share/lorax'
if repos != []:
self.repo, self.extrarepos = self.__collectRepos(repos)
else:
self.repo = None
self.extrarepos = []
self.repos = repos
self.output = output
self.mirrorlist = mirrorlist
self.updates = updates
@ -62,6 +57,12 @@ class Lorax:
print("| Setting up work directories and configuration data... |")
print("+=======================================================+\n")
if repos != []:
self.repo, self.extrarepos = self.__collectRepos(repos)
else:
self.repo = None
self.extrarepos = []
self.buildinstdir, self.treedir, self.cachedir = self.__initializeDirs()
self.yumconf = self.__writeYumConf()