[yum-git] 2 commits - cli.py
Seth Vidal
skvidal at linux.duke.edu
Mon Mar 17 15:50:47 UTC 2008
cli.py | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
New commits:
commit 056c733af92b7896df20a61fe102f24b3fae164d
Merge: 9249f00... 6575859...
Author: Seth Vidal <skvidal at fedoraproject.org>
Date: Mon Mar 17 11:41:25 2008 -0400
Merge branch 'master' of ssh://login.linux.duke.edu/home/groups/yum/git/yum
* 'master' of ssh://login.linux.duke.edu/home/groups/yum/git/yum:
Fix the last commit *grumble*, stupid mondays, *grumble*
Manually clean expire cache, so network manager can run when we move networks
Don't count on len(self._oldRepoMDData) to mean we have old repo MD
commit 9249f00029d2d5d4f2c57474cbb89d3f9359562b
Author: Seth Vidal <skvidal at fedoraproject.org>
Date: Mon Mar 17 11:41:18 2008 -0400
make deplist able to work on localpackages
ex: yum deplist /path/to/foobar.rpm
diff --git a/cli.py b/cli.py
index 35735bc..16c7cdf 100644
--- a/cli.py
+++ b/cli.py
@@ -707,12 +707,16 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
def deplist(self, args):
"""cli wrapper method for findDeps method takes a list of packages and
returns a formatted deplist for that package"""
-
+
+ pkgs = []
for arg in args:
- pkgs = []
- ematch, match, unmatch = self.pkgSack.matchPackageNames([arg])
- for po in ematch + match:
- pkgs.append(po)
+ if os.path.exists(arg) and arg.endswith('.rpm'): # this is hurky, deal w/it
+ thispkg = yum.packages.YumLocalPackage(self.ts, arg)
+ pkgs.append(thispkg)
+ else:
+ ematch, match, unmatch = self.pkgSack.matchPackageNames([arg])
+ for po in ematch + match:
+ pkgs.append(po)
results = self.findDeps(pkgs)
self.depListOutput(results)
More information about the Yum-cvs-commits
mailing list