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

skvidal at osuosl.org skvidal at osuosl.org
Wed Apr 8 19:58:21 UTC 2009


 yum/__init__.py |   16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

New commits:
commit 52d3779772df8ff8d09299890329499102a8c61e
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Wed Apr 8 15:56:41 2009 -0400

    - fix to make local package from file:// urls work, at all. :(

diff --git a/yum/__init__.py b/yum/__init__.py
index 45378e1..7e5e600 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -999,6 +999,17 @@ class YumBase(depsolve.Depsolve):
         # check to see that the rpmdb and the tsInfo roughly matches
         # push package object metadata outside of rpmdb into yumdb
         # delete old yumdb metadata entries
+        
+        # for each pkg in the tsInfo
+        # if it is an install - see that the pkg is installed
+        # if it is an update - see that the pkg is installed and the old version
+        #   has been removed
+        # if it is a remove - see that the pkg is no longer installed, provided
+        #    that there is not also an install of this pkg in the tsInfo (reinstall)
+        # if it is an obsolete - see that the pkg is installed and the obsoleted pkg
+        # has been removed
+        # for any kind of install add from_repo to the yumdb
+
         pass
         
     def costExcludePackages(self):
@@ -1200,7 +1211,10 @@ class YumBase(depsolve.Depsolve):
 
         if type(fo) is types.InstanceType:
             fo = fo.filename
-            
+        
+        if fo != po.localPkg():
+            po.localpath = fo
+
         if not po.verifyLocalPkg():
             failed = True
         else:


More information about the Yum-commits mailing list