[yum-commits] Branch 'yum-3_2_X' - yum/sqlitesack.py

James Antill james at osuosl.org
Mon Jun 7 19:01:35 UTC 2010


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

New commits:
commit 7f86261c17f634bef29bb0d74e3131d435497f87
Author: James Antill <james at and.org>
Date:   Mon Jun 7 15:01:29 2010 -0400

    Remove giant comment of old code

diff --git a/yum/sqlitesack.py b/yum/sqlitesack.py
index 92b98ce..9accbb1 100644
--- a/yum/sqlitesack.py
+++ b/yum/sqlitesack.py
@@ -1369,53 +1369,6 @@ class YumSqlitePackageSack(yumRepo.YumPackageSack):
         # If it is a filename, search the files.xml file info
         results.extend(self.searchFiles(n))
         return misc.unique(results)
-        
-        
-        #~ #FIXME - comment this all out below here
-        #~ for (rep,cache) in self.filelistsdb.items():
-            #~ cur = cache.cursor()
-            #~ (dirname,filename) = os.path.split(name)
-            #~ # FIXME: why doesn't this work???
-            #~ if 0: # name.find('%') == -1: # no %'s in the thing safe to LIKE
-                #~ executeSQL(cur, "select packages.pkgId as pkgId,\
-                    #~ filelist.dirname as dirname,\
-                    #~ filelist.filetypes as filetypes,\
-                    #~ filelist.filenames as filenames \
-                    #~ from packages,filelist where \
-                    #~ (filelist.dirname LIKE ? \
-                    #~ OR (filelist.dirname LIKE ? AND\
-                    #~ filelist.filenames LIKE ?))\
-                    #~ AND (filelist.pkgKey = packages.pkgKey)", (name,dirname,filename))
-            #~ else: 
-                #~ executeSQL(cur, "select packages.pkgId as pkgId,\
-                    #~ filelist.dirname as dirname,\
-                    #~ filelist.filetypes as filetypes,\
-                    #~ filelist.filenames as filenames \
-                    #~ from filelist,packages where dirname = ? AND filelist.pkgKey = packages.pkgKey" , (dirname,))
-
-            #~ matching_ids = []
-            #~ for res in cur:
-                #~ if self._excluded(rep, res['pkgId']):
-                    #~ continue
-                
-                #~ #FIXME - optimize the look up here by checking for single-entry filenames
-                #~ quicklookup = {}
-                #~ for fn in decodefilenamelist(res['filenames']):
-                    #~ quicklookup[fn] = 1
-                
-                #~ # If it matches the dirname, that doesnt mean it matches
-                #~ # the filename, check if it does
-                #~ if filename and filename not in quicklookup:
-                    #~ continue
-                
-                #~ matching_ids.append(str(res['pkgId']))
-                
-            
-            #~ pkgs = self._getListofPackageDetails(matching_ids)
-            #~ for pkg in pkgs:
-                #~ results.append(self.pc(rep,pkg))
-        
-        #~ return results
 
     def searchProvides(self, name):
         """return list of packages providing name (any evr and flag)"""


More information about the Yum-commits mailing list