Fix indent

This commit is contained in:
jkeating@reducto.boston.redhat.com 2007-02-15 16:25:52 -05:00 committed by Jesse Keating
parent 090eebdcf8
commit 6ebb69628f

View File

@ -67,24 +67,24 @@ class Gather(yum.YumBase):
Returns a list or None""" Returns a list or None"""
bestlist = None bestlist = None
(r, f, v) = req (r, f, v) = req
satisfiers = [] satisfiers = []
for po in self.whatProvides(r, f, v): for po in self.whatProvides(r, f, v):
# if we already have something installed which does the provide # if we already have something installed which does the provide
# then that's obviously the one we want to use. this takes # then that's obviously the one we want to use. this takes
# care of the case that we select, eg, kernel-smp and then # care of the case that we select, eg, kernel-smp and then
# have something which requires kernel # have something which requires kernel
if self.tsInfo.getMembers(po.pkgtup): if self.tsInfo.getMembers(po.pkgtup):
return [po] return [po]
if po not in satisfiers: if po not in satisfiers:
satisfiers.append(po) satisfiers.append(po)
if satisfiers: if satisfiers:
bestlist = self.bestPackagesFromList(satisfiers, arch=self.compatarch) bestlist = self.bestPackagesFromList(satisfiers, arch=self.compatarch)
return bestlist return bestlist
return None return None
def getPackageDeps(self, po): def getPackageDeps(self, po):
"""Return the dependencies for a given package, as well """Return the dependencies for a given package, as well