summaryrefslogtreecommitdiff
path: root/portato/db/sql.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--portato/db/sql.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/portato/db/sql.py b/portato/db/sql.py
index 6c95bb3..db66764 100644
--- a/portato/db/sql.py
+++ b/portato/db/sql.py
@@ -58,7 +58,7 @@ class SQLDatabase (Database):
else:
debug("package.db not existant")
- pkg_conn = sql.connect(os.path.join(SESSION_DIR, "package.db"))
+ pkg_conn = sql.connect(pkgdb)
pkg_conn.row_factory = sql.Row
if pkgdb_existed and updateFormat:
pkg_conn.execute("DROP TABLE packages")
@@ -83,15 +83,6 @@ class SQLDatabase (Database):
pkg_conn.close()
- descr_conn = sql.connect(os.path.join(SESSION_DIR, "descr.db"))
- descr_conn.execute("""
- CREATE TABLE IF NOT EXISTS descriptions
- (
- cp TEXT,
- descr TEXT
- )""")
- descr_conn.close()
-
def updated (self):
changed = False