Hi!

I'll post the single changes made to the Depsolver to adjust it to the getProvides/Requires interface. All patches of course require the getProvides patch series.

We start with a small prelude.

Florian
Index: yum/depsolve.py
===================================================================
RCS file: /cvsroot/yum/cvs/yum/yum/depsolve.py,v
retrieving revision 1.168
diff -u -r1.168 depsolve.py
--- yum/depsolve.py	13 Jun 2007 17:52:02 -0000	1.168
+++ yum/depsolve.py	14 Jun 2007 12:22:22 -0000
@@ -35,6 +35,13 @@
 import warnings
 warnings.simplefilter("ignore", Errors.YumFutureDeprecationWarning)
 
+flags = {"GT": rpm.RPMSENSE_GREATER,
+         "GE": rpm.RPMSENSE_EQUAL | rpm.RPMSENSE_GREATER,
+         "LT": rpm.RPMSENSE_LESS,
+         "LE": rpm.RPMSENSE_LESS | rpm.RPMSENSE_EQUAL,
+         "EQ": rpm.RPMSENSE_EQUAL,
+         None: 0 }
+
 class Depsolve(object):
     def __init__(self):
         packages.base = self
@@ -65,12 +72,13 @@
             raise Errors.YumBaseError, 'Setting up TransactionSets before config class is up'
         
         self._tsInfo = self._transactionDataFactory()
+        self._tsInfo.setDatabases(self.rpmdb, self.pkgSack)
         self.initActionTs()
     
     def _getTsInfo(self):
         if self._tsInfo is None:
             self._tsInfo = self._transactionDataFactory()
-
+            self._tsInfo.setDatabases(self.rpmdb, self.pkgSack)
         return self._tsInfo
 
     def _setTsInfo(self, value):
_______________________________________________
Yum-devel mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel

Reply via email to