mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-01 07:57:26 +01:00
Removed unused
This commit is contained in:
parent
1fe2112fcf
commit
37736f7847
1 changed files with 2 additions and 9 deletions
|
@ -747,6 +747,8 @@ class Update:
|
||||||
raise SystemExit()
|
raise SystemExit()
|
||||||
|
|
||||||
def check_db(self):
|
def check_db(self):
|
||||||
|
"""Checking if the table exists
|
||||||
|
"""
|
||||||
sbo_db = Database("sbo", "SLACKBUILDS.TXT")
|
sbo_db = Database("sbo", "SLACKBUILDS.TXT")
|
||||||
if sbo_db.table_exists() == 0:
|
if sbo_db.table_exists() == 0:
|
||||||
sbo_db.create_sbo_table()
|
sbo_db.create_sbo_table()
|
||||||
|
@ -758,15 +760,6 @@ class Update:
|
||||||
f"{self.endc}", end="", flush=True)
|
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):
|
def check_exists_repositories(repo):
|
||||||
"""Checking if repositories exists by PACKAGES.TXT file
|
"""Checking if repositories exists by PACKAGES.TXT file
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Reference in a new issue