--- createrepo/__init__.py.orig	2008-10-28 20:58:14.000000000 +0100
+++ createrepo/__init__.py	2008-11-06 11:52:03.000000000 +0100
@@ -36,7 +36,7 @@ import readMetadata
 try:
     import sqlite3 as sqlite
 except ImportError:
-    import sqlite
+    from pysqlite2 import dbapi2 as sqlite
 
 try:
     import sqlitecachec
