[yum-git] yum/depsolve.py

James Antill james at linux.duke.edu
Sun Feb 17 02:47:18 UTC 2008


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

New commits:
commit 87aed214d199df4c97bf0541a017cdef95bef6a9
Author: James Antill <james at and.org>
Date:   Sat Feb 16 21:47:06 2008 -0500

    Run make check, and fall back to old behaviour

diff --git a/yum/depsolve.py b/yum/depsolve.py
index 473fe66..5afa85f 100644
--- a/yum/depsolve.py
+++ b/yum/depsolve.py
@@ -739,7 +739,10 @@ class Depsolve(object):
             # then we want to know who is causing the problem, not just who is having the problem. 
             if not txmbr.updates and txmbr.relatedto:
                 tpos = self.tsInfo.getMembers(txmbr.relatedto[0][0])
-                self._working_po = tpos[0]
+                if not tpos: # Find the po from somewhere else / fix relatedto?
+                    self._working_po = txmbr.relatedto[0][0]
+                else:
+                    self._working_po = tpos[0].po
             else:
                 self._working_po = txmbr.po
            



More information about the Yum-cvs-commits mailing list