From 37736f784782517169ce70b5344c14b6548157e0 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sun, 29 May 2022 17:14:21 +0300 Subject: [PATCH] Removed unused --- slpkg/init.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/slpkg/init.py b/slpkg/init.py index 0202c69c..8cfdf081 100644 --- a/slpkg/init.py +++ b/slpkg/init.py @@ -747,6 +747,8 @@ class Update: raise SystemExit() def check_db(self): + """Checking if the table exists + """ sbo_db = Database("sbo", "SLACKBUILDS.TXT") if sbo_db.table_exists() == 0: sbo_db.create_sbo_table() @@ -758,15 +760,6 @@ class Update: f"{self.endc}", end="", flush=True) -def database(text_file): - db_lib = _meta_.lib_path + "database" - init = Initialization(False) - init.make_dirs([db_lib]) - data = Database("sbo", text_file) - data.create_sbo_table() - data.insert_sbo_table() - - def check_exists_repositories(repo): """Checking if repositories exists by PACKAGES.TXT file """