[yum-cvs] yum/yum depsolve.py,1.124,1.125

Jeremy Katz katzj at linux.duke.edu
Mon Feb 19 22:51:13 UTC 2007


Update of /home/groups/yum/cvs/yum/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv10157/yum

Modified Files:
	depsolve.py 
Log Message:
this doesn't really belong here, but make it so that we see that installonly
packages are being installed and not updated.  otherwise, it's not reflected
until you actually do the install/update breaking plugins (installonlyn) and
the display of what's being done

possibly move to __init__.py:buildTransaction() after the resolveDeps()  ???


Index: depsolve.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/depsolve.py,v
retrieving revision 1.124
retrieving revision 1.125
diff -u -r1.124 -r1.125
--- depsolve.py	19 Feb 2007 22:48:39 -0000	1.124
+++ depsolve.py	19 Feb 2007 22:51:11 -0000	1.125
@@ -1090,6 +1090,16 @@
 
             
             if not deps:
+                # FIXME: this doesn't belong here at all...
+                for txmbr in self.tsInfo.getMembers():
+                    if self.allowedMultipleInstalls(txmbr.po) and \
+                           txmbr.ts_state == 'u':
+                        self.verbose_logger.log(logginglevels.DEBUG_2,
+                                                '%s converted to install',
+                                                txmbr.po)
+                        txmbr.ts_state = 'i'
+                        txmbr.output_state = TS_INSTALL
+                
                 self.tsInfo.changed = False
                 return (2, ['Success - deps resolved'])
 




More information about the Yum-cvs-commits mailing list