Create a run() method for InstRoot and call private methods correctly.
This commit is contained in:
parent
2af6716ed6
commit
c39d130b60
@ -68,17 +68,25 @@ class InstRoot:
|
|||||||
|
|
||||||
# the directory where the instroot will be created
|
# the directory where the instroot will be created
|
||||||
self.destdir = os.path.join(self.treedir, 'install')
|
self.destdir = os.path.join(self.treedir, 'install')
|
||||||
|
|
||||||
|
def run(self):
|
||||||
|
"""run()
|
||||||
|
|
||||||
|
Generate the instroot tree and prepare it for building images.
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
if not os.path.isdir(self.destdir):
|
if not os.path.isdir(self.destdir):
|
||||||
os.makedirs(self.destdir)
|
os.makedirs(self.destdir)
|
||||||
|
|
||||||
# build a list of packages to install
|
# build a list of packages to install
|
||||||
self.packages = self._getPackageList()
|
self.packages = self.__getPackageList()
|
||||||
|
|
||||||
# install the packages to the instroot
|
# install the packages to the instroot
|
||||||
self._installPackages()
|
self.__installPackages()
|
||||||
|
|
||||||
# scrub instroot
|
# scrub instroot
|
||||||
self._scrubInstRoot()
|
self.__scrubInstRoot()
|
||||||
|
|
||||||
def __getPackageList(self):
|
def __getPackageList(self):
|
||||||
packages = set()
|
packages = set()
|
||||||
|
Loading…
Reference in New Issue
Block a user