From 6ebb69628f3fc8c2e4db657990114a4412470d3c Mon Sep 17 00:00:00 2001 From: "jkeating@reducto.boston.redhat.com" <> Date: Thu, 15 Feb 2007 16:25:52 -0500 Subject: [PATCH] Fix indent --- pypungi/gather.py | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/pypungi/gather.py b/pypungi/gather.py index e694425c..ff740e4d 100755 --- a/pypungi/gather.py +++ b/pypungi/gather.py @@ -67,24 +67,24 @@ class Gather(yum.YumBase): Returns a list or None""" - bestlist = None - (r, f, v) = req + bestlist = None + (r, f, v) = req - satisfiers = [] - for po in self.whatProvides(r, f, v): - # if we already have something installed which does the provide - # then that's obviously the one we want to use. this takes - # care of the case that we select, eg, kernel-smp and then - # have something which requires kernel - if self.tsInfo.getMembers(po.pkgtup): - return [po] - if po not in satisfiers: - satisfiers.append(po) + satisfiers = [] + for po in self.whatProvides(r, f, v): + # if we already have something installed which does the provide + # then that's obviously the one we want to use. this takes + # care of the case that we select, eg, kernel-smp and then + # have something which requires kernel + if self.tsInfo.getMembers(po.pkgtup): + return [po] + if po not in satisfiers: + satisfiers.append(po) - if satisfiers: - bestlist = self.bestPackagesFromList(satisfiers, arch=self.compatarch) - return bestlist - return None + if satisfiers: + bestlist = self.bestPackagesFromList(satisfiers, arch=self.compatarch) + return bestlist + return None def getPackageDeps(self, po): """Return the dependencies for a given package, as well