diff --git a/src/pylorax/__init__.py b/src/pylorax/__init__.py index 42d6950e..0bc35a9a 100644 --- a/src/pylorax/__init__.py +++ b/src/pylorax/__init__.py @@ -145,7 +145,7 @@ class Lorax: return ret_arch - def _collectRepos(self, repos): + def __collectRepos(self, repos): """_collectRepos(repos) Get the main repo (the first one) and then build a list of all remaining @@ -176,7 +176,7 @@ class Lorax: return repo, extrarepos - def _initializeDirs(self): + def __initializeDirs(self): """_initializeDirs() Create directories used for image generation. @@ -199,7 +199,7 @@ class Lorax: return buildinstdir, treedir, cachedir - def _writeYumConf(self): + def __writeYumConf(self): """_writeYumConf() Generate a temporary yum.conf file for image generation. Returns the path diff --git a/src/pylorax/instroot.py b/src/pylorax/instroot.py index 0e02b608..42831ace 100644 --- a/src/pylorax/instroot.py +++ b/src/pylorax/instroot.py @@ -80,7 +80,7 @@ class InstRoot: # scrub instroot self._scrubInstRoot() - def _getPackageList(self): + def __getPackageList(self): packages = set() packages_files = [] @@ -112,7 +112,7 @@ class InstRoot: return packages # Call yummain to install the list of packages to destdir - def _installPackages(self): + def __installPackages(self): # build the list of arguments to pass to yum arglist = ['-c', self.yumconf] arglist.append("--installroot=%s" % (self.destdir,)) @@ -131,7 +131,7 @@ class InstRoot: errcode = yummain.user_main(arglist, exit_code=False) # Scrub the instroot tree (remove files we don't want, modify settings, etc) - def _scrubInstRoot(self): + def __scrubInstRoot(self): print # drop custom configuration files in to the instroot