Hidden methods start with two underscores.
Mark all private/hidden methods with two underscores at the beginning of the name.
This commit is contained in:
		
							parent
							
								
									979f553056
								
							
						
					
					
						commit
						4b59f9593e
					
				| @ -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 | ||||
|  | ||||
| @ -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 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user