diff --git a/slpkg/queries.py b/slpkg/queries.py index 3bec26ba..7b57110e 100644 --- a/slpkg/queries.py +++ b/slpkg/queries.py @@ -22,7 +22,8 @@ class SBoQueries: def names(self): """ Returns all the slackbuilds. """ - return list(self._names_grabbing()) + names = self.session.query(SBoTable.name).all() + return [name[0] for name in names] def slackbuild(self): """ Returns a slackbuild. """ @@ -117,9 +118,3 @@ class SBoQueries: if self.configs.os_arch == 'x86_64' and arch64: return arch64 return arch - - def _names_grabbing(self): - """ Generate and returns all the slackbuilds. """ - names = self.session.query(SBoTable.name).all() - for n in names: - yield n[0]