onlyActive -> only_active

This commit is contained in:
Faik Uygur
2009-06-09 06:20:11 +00:00
parent 77d8932058
commit c9644217ab
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -224,12 +224,12 @@ def list_upgradable():
return upgradable
def list_repos(onlyActive=True):
def list_repos(only_active=True):
"""
Return a list of the repositories -> list_of_strings
@param onlyActive: return only the active repos list -> list_of_strings
@param only_active: return only the active repos list -> list_of_strings
"""
return pisi.db.repodb.RepoDB().list_repos(onlyActive)
return pisi.db.repodb.RepoDB().list_repos(only_active)
def get_install_order(packages):
"""
+2 -2
View File
@@ -188,8 +188,8 @@ class RepoDB(lazydb.LazyDB):
repos.append(r)
return repos
def list_repos(self, onlyActive=True):
return filter(lambda x:True if not onlyActive else self.repo_active(x), self.repoorder.get_order())
def list_repos(self, only_active=True):
return filter(lambda x:True if not only_active else self.repo_active(x), self.repoorder.get_order())
def list_repo_urls(self):
repos = []