Fix breakage in generation of favorites list for bug #150754.
authorZac Medico <zmedico@gentoo.org>
Tue, 10 Oct 2006 18:06:34 +0000 (18:06 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 10 Oct 2006 18:06:34 +0000 (18:06 -0000)
svn path=/main/trunk/; revision=4649

bin/emerge

index 4d0d8b285bca7a071734ccf68e1a81c2f02df64c..f82448a4a302bc5ae1c90b575e77b6b9e60cb27a 100755 (executable)
@@ -1004,7 +1004,9 @@ class depgraph:
                                if not self.mysd:
                                        return (0,myfavorites)
                                elif not "--oneshot" in self.myopts:
-                                       myfavorites.append(portage.dep_getkey(mykey))
+                                       mykey = portage.dep_getkey(myatom)
+                                       if mykey not in myfavorites:
+                                               myfavorites.append(mykey)
 
                missing=0
                if "--usepkgonly" in self.myopts: