onlyActive -> only_active
This commit is contained in:
+3
-3
@@ -224,12 +224,12 @@ def list_upgradable():
|
|||||||
|
|
||||||
return upgradable
|
return upgradable
|
||||||
|
|
||||||
def list_repos(onlyActive=True):
|
def list_repos(only_active=True):
|
||||||
"""
|
"""
|
||||||
Return a list of the repositories -> list_of_strings
|
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):
|
def get_install_order(packages):
|
||||||
"""
|
"""
|
||||||
|
|||||||
+2
-2
@@ -188,8 +188,8 @@ class RepoDB(lazydb.LazyDB):
|
|||||||
repos.append(r)
|
repos.append(r)
|
||||||
return repos
|
return repos
|
||||||
|
|
||||||
def list_repos(self, onlyActive=True):
|
def list_repos(self, only_active=True):
|
||||||
return filter(lambda x:True if not onlyActive else self.repo_active(x), self.repoorder.get_order())
|
return filter(lambda x:True if not only_active else self.repo_active(x), self.repoorder.get_order())
|
||||||
|
|
||||||
def list_repo_urls(self):
|
def list_repo_urls(self):
|
||||||
repos = []
|
repos = []
|
||||||
|
|||||||
Reference in New Issue
Block a user