[yum-cvs] yum cli.py,1.240,1.241
Seth Vidal
skvidal at linux.duke.edu
Fri Sep 29 05:41:09 UTC 2006
Update of /home/groups/yum/cvs/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv16235
Modified Files:
cli.py
Log Message:
make sure we're not accidentally trying to install an old version
Index: cli.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/cli.py,v
retrieving revision 1.240
retrieving revision 1.241
diff -u -r1.240 -r1.241
--- cli.py 26 Sep 2006 13:24:58 -0000 1.240
+++ cli.py 29 Sep 2006 05:41:07 -0000 1.241
@@ -573,11 +573,12 @@
elif pkg == instpo: # same, ignore
continue
elif pkg < instpo: # lesser, check if the pkgtup is an exactmatch
- # if so then add it to be installed,
- # the user explicitly wants this version
- # FIXME this is untrue if the exactmatch
- # does not include a version-rel section
- if pkg in exactmatch:
+ # if so then add it to be installed
+ # if it can be multiply installed
+ # this is where we could handle setting
+ # it to be an 'oldpackage' revert.
+
+ if pkg in exactmatch and self.allowedMultipleInstalls(pkg):
if not toBeInstalled.has_key(pkg.name): toBeInstalled[pkg.name] = []
toBeInstalled[pkg.name].append(pkg)
else: # we've not got any installed that match n or n+a
More information about the Yum-cvs-commits
mailing list