[yum-cvs] yum/sqlitesack.py

James Bowes jbowes at linux.duke.edu
Wed Aug 1 23:35:32 UTC 2007


 yum/sqlitesack.py |   11 -----------
 1 file changed, 11 deletions(-)

New commits:
commit 3c2621ba8f8070f24ad3e979f6bd1699f6f6b394
Author: James Bowes <jbowes at redhat.com>
Date:   Wed Aug 1 19:22:54 2007 -0400

    Revert "move creation of sqlite idices to sqlitesack to create them even if the metadataparser is used"
    
    Generating the indices in sqlitesack changes the checksum, and so cause the
    sqlite files to always get downloaded. Index generation should live in
    yum-metadata-parser instead.
    
    This reverts commit 42283902f929ac131cda7b3497ae047b497e02bc.

diff --git a/yum/sqlitesack.py b/yum/sqlitesack.py
index c702dad..ea051c4 100644
--- a/yum/sqlitesack.py
+++ b/yum/sqlitesack.py
@@ -262,19 +262,8 @@ class YumSqlitePackageSack(yumRepo.YumPackageSack):
 
         if datatype == 'metadata':
             self.primarydb[repo] = dataobj
-            # temporary hack to create indexes that are not (yet)
-            # created by the metadata parser
-            cur = dataobj.cursor()
-            cur.execute("CREATE INDEX IF NOT EXISTS pkgprovides ON provides (pkgKey)")
-            cur.execute("CREATE INDEX IF NOT EXISTS requiresname ON requires (name)")
-            cur.execute("CREATE INDEX IF NOT EXISTS pkgrequires ON requires (pkgKey)")
-            cur.execute("CREATE INDEX IF NOT EXISTS pkgconflicts ON conflicts (pkgKey)")
-            cur.execute("CREATE INDEX IF NOT EXISTS pkgobsoletes ON obsoletes (pkgKey)")
-            cur.execute("CREATE INDEX IF NOT EXISTS filenames ON files (name)")
         elif datatype == 'filelists':
             self.filelistsdb[repo] = dataobj
-            cur = dataobj.cursor()
-            cur.execute("CREATE INDEX IF NOT EXISTS dirnames ON filelist (dirname)")
         elif datatype == 'otherdata':
             self.otherdb[repo] = dataobj
         else:



More information about the Yum-cvs-commits mailing list