aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2007-10-18 02:50:00 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2007-10-18 02:50:00 +0000
commitb2138326350958d385dafd2075636df638650132 (patch)
tree35484fc7742604cca6e5a83fa8421290bfb05a82 /dbgenerator/database.py
parentRemove debug statements. (diff)
downloadpackages-3-b2138326350958d385dafd2075636df638650132.tar.gz
packages-3-b2138326350958d385dafd2075636df638650132.tar.bz2
packages-3-b2138326350958d385dafd2075636df638650132.zip
Remove debug statements.
Diffstat (limited to 'dbgenerator/database.py')
-rw-r--r--dbgenerator/database.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/dbgenerator/database.py b/dbgenerator/database.py
index f8ae10f..7c31d11 100644
--- a/dbgenerator/database.py
+++ b/dbgenerator/database.py
@@ -93,7 +93,6 @@ class SQLPackageDatabase(object):
def add_keywords(self, category, pn, pv, keyword_dict):
cpv = self.find_cpv(category, pn, pv)
- #print "c=%s pn=%s pv=%s cpv=%s kw=%s" % (category, pn, pv, repr(cpv), keyword_dict)
self.cursor.execute('DELETE FROM keywords WHERE cpv = ?'.replace('?',self.syntax_placeholder), (cpv,))
sql = 'INSERT INTO keywords (cpv, a, mode) VALUES (?, ?, ?)'.replace('?',self.syntax_placeholder)
for arch in keyword_dict.keys():
@@ -221,9 +220,7 @@ class SQLitePackageDB(SQLPackageDatabase):
self.initdb = True
if os.path.exists(config['database']):
self.initdb = False
- #self.db = sqlite.connect(database=config['database'])
self.db = sqlite.connect(**config)
- print self.db
self.db.isolation_level = 'DEFERRED'
self.cursor = self.db.cursor()
if not self.schema_is_current():