[yum-commits] Branch 'yum-3_2_X' - yum/depsolve.py

James Antill james at osuosl.org
Mon Oct 27 19:49:16 UTC 2008


 yum/depsolve.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a50ffbc85fae4d036bd48632406acea9e4806df5
Author: James Antill <james at and.org>
Date:   Mon Oct 27 15:49:11 2008 -0400

    Allow rm only trans. but allow later install too

diff --git a/yum/depsolve.py b/yum/depsolve.py
index 749a280..579e7a1 100644
--- a/yum/depsolve.py
+++ b/yum/depsolve.py
@@ -91,6 +91,8 @@ class Depsolve(object):
            yet"""
         
         if self._tsInfo != None and self._ts != None:
+            if not remove_only and self._tsInfo.pkgSack is None:
+                self._tsInfo.setDatabases(self.rpmdb, self.pkgSack)
             return
             
         if not self.conf.installroot:
@@ -114,8 +116,6 @@ class Depsolve(object):
             self._tsInfo.install_method = self.install
             self._tsInfo.update_method = self.update
             self._tsInfo.remove_method = self.remove
-        elif not remove_only and self._tsInfo.pkgSack is None:
-            self._tsInfo.setDatabases(self.rpmdb, self.pkgSack)
         return self._tsInfo
 
     def _setTsInfo(self, value):


More information about the Yum-commits mailing list