summaryrefslogtreecommitdiff
path: root/portato
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-07-28 12:47:16 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-07-28 12:47:16 +0200
commit91758613ba284f6bda3ac0c8ffe34f1a8b308e95 (patch)
treed6d764a5e9062db7340e24f85bbb2ef17ba88d31 /portato
parent452bf1e7237e6cb1d8a697179eaee9ed3a430d52 (diff)
downloadportato-91758613ba284f6bda3ac0c8ffe34f1a8b308e95.tar.gz
portato-91758613ba284f6bda3ac0c8ffe34f1a8b308e95.tar.bz2
portato-91758613ba284f6bda3ac0c8ffe34f1a8b308e95.zip
Do not create the useless description db
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