Fix the case where the currently installed package is from a repo that is no longer...
authorZac Medico <zmedico@gentoo.org>
Thu, 12 Jul 2007 04:50:13 +0000 (04:50 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 12 Jul 2007 04:50:13 +0000 (04:50 -0000)
svn path=/main/trunk/; revision=7241

pym/emerge/__init__.py

index 87cabe624a71bcd32f6ca44609224fd91219a398..97613e627156e351fbee6cf0b22c6364576c480c 100644 (file)
@@ -3015,7 +3015,7 @@ class depgraph(object):
                                                        newrepoindex += 1
                                                
                                                # assing lookup indexes
-                                               if oldrepo == "":
+                                               if not oldrepo:
                                                        oldrepoindex = "?"
                                                elif oldrepo == pkgsettings["PORTDIR"]:
                                                        oldrepoindex = "0"