diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2007-10-18 02:50:00 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2007-10-18 02:50:00 +0000 |
commit | b2138326350958d385dafd2075636df638650132 (patch) | |
tree | 35484fc7742604cca6e5a83fa8421290bfb05a82 /dbgenerator | |
parent | Remove debug statements. (diff) | |
download | packages-3-b2138326350958d385dafd2075636df638650132.tar.gz packages-3-b2138326350958d385dafd2075636df638650132.tar.bz2 packages-3-b2138326350958d385dafd2075636df638650132.zip |
Remove debug statements.
Diffstat (limited to 'dbgenerator')
-rw-r--r-- | dbgenerator/core.py | 5 | ||||
-rw-r--r-- | dbgenerator/database.py | 3 |
2 files changed, 2 insertions, 6 deletions
diff --git a/dbgenerator/core.py b/dbgenerator/core.py index f6a394e..bc1080d 100644 --- a/dbgenerator/core.py +++ b/dbgenerator/core.py @@ -66,14 +66,13 @@ def main(): continue if not database.initdb and max_timestamp >= max_mtime: - print "Skipping %s/%s" % (category, package) + #print "Skipping %s/%s" % (category, package) continue print "Working on %s/%s" % (category, package) # get general metadata - description, homepage, pkglicense = backend.get_app_metadata((category, - package)) + description, homepage, pkglicense = backend.get_app_metadata((category, package)) changelog = latest_changelog(backend.get_changelog((category, package))) 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(): |