[yum-cvs] yum cli.py,1.187,1.188
Seth Vidal
skvidal at login.linux.duke.edu
Thu Jul 14 08:29:00 UTC 2005
Update of /home/groups/yum/cvs/yum
In directory login:/tmp/cvs-serv12937
Modified Files:
cli.py
Log Message:
allow remove option to handle virtual provides, versioned provides,
file-deps, etc, like install can deal with.
Index: cli.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/cli.py,v
retrieving revision 1.187
retrieving revision 1.188
diff -u -r1.187 -r1.188
--- cli.py 30 Jun 2005 05:58:00 -0000 1.187
+++ cli.py 14 Jul 2005 08:28:58 -0000 1.188
@@ -1037,7 +1037,15 @@
exactmatch, matched, unmatched = yum.packages.parsePackages(
installed, userlist, casematch=1)
erases = yum.misc.unique(matched + exactmatch)
-
+
+ if unmatched:
+ for arg in unmatched:
+ depmatches = self.returnInstalledPackagesByDep(arg)
+ if not depmatches:
+ self.errorlog(0, _('No Match for argument: %s') % arg)
+ else:
+ erases.extend(depmatches)
+
for pkg in erases:
self.tsInfo.addErase(pkg)
More information about the Yum-cvs-commits
mailing list