diff --git a/slpkg/sbo/greps.py b/slpkg/sbo/greps.py index 542cc513..94905e80 100644 --- a/slpkg/sbo/greps.py +++ b/slpkg/sbo/greps.py @@ -53,9 +53,13 @@ class SBoGrep(Utils): def _names_grabbing(self): """Generator that collecting all packages names """ - for line in self.SLACKBUILDS_TXT.splitlines(): - if line.startswith(self.line_name): - yield line[17:].strip() + names = self.cur.execute("SELECT name FROM sbo").fetchall() + for n in names: + yield n[0] + +# for line in self.SLACKBUILDS_TXT.splitlines(): +# if line.startswith(self.line_name): +# yield line[17:].strip() def names(self): """Alias method convert generator and return