[yum-cvs] yum/yum sqlitesack.py,1.76,1.77

James Bowes jbowes at linux.duke.edu
Sat Mar 3 18:58:19 UTC 2007


Update of /home/groups/yum/cvs/yum/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv5892/yum

Modified Files:
	sqlitesack.py 
Log Message:
Fix an improperly indented block

Index: sqlitesack.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/sqlitesack.py,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -r1.76 -r1.77
--- sqlitesack.py	2 Mar 2007 20:39:13 -0000	1.76
+++ sqlitesack.py	3 Mar 2007 18:58:17 -0000	1.77
@@ -291,22 +291,23 @@
                 OR (filelist.dirname LIKE ? AND\
                 filelist.filenames LIKE ?))\
                 AND (filelist.pkgKey = packages.pkgKey)", (name,dirname,filename))
-                    
-        # cull the results for false positives
-        for ob in cur.fetchall():
-            # Check if it is an actual match
-            # The query above can give false positives, when
-            # a package provides /foo/aaabar it will also match /foo/bar
-            if self._excluded(rep, ob['pkgId']):
-                continue
-            real = False
-            for filename in decodefilenamelist(ob['filenames']):
-                if (ob['dirname']+'/'+filename).find(name) != -1:
-                    real = True
-            if (not real):
-                continue
-            pkg = self.getPackageDetails(ob['pkgId'])
-            result.append((self.pc(rep,pkg)))
+
+            # cull the results for false positives
+            for ob in cur.fetchall():
+                # Check if it is an actual match
+                # The query above can give false positives, when
+                # a package provides /foo/aaabar it will also match /foo/bar
+                if self._excluded(rep, ob['pkgId']):
+                    continue
+                real = False
+                for filename in decodefilenamelist(ob['filenames']):
+                    if (ob['dirname']+'/'+filename).find(name) != -1:
+                        real = True
+                if (not real):
+                    continue
+                pkg = self.getPackageDetails(ob['pkgId'])
+                result.append((self.pc(rep,pkg)))
+
         return result     
     
     def searchPrimaryFields(self, fields, searchstring):




More information about the Yum-cvs-commits mailing list