Move __collectRepos() call to Lorax.run()
This commit is contained in:
parent
010f7e5f88
commit
bdbf05ecd5
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user