For bug #185670, make sure package.use.{mask,force} are properly displayed. (branches...
authorZac Medico <zmedico@gentoo.org>
Mon, 30 Jul 2007 06:48:46 +0000 (06:48 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 30 Jul 2007 06:48:46 +0000 (06:48 -0000)
svn path=/main/branches/2.1.2.9/; revision=7500

bin/emerge

index 201c44db610569b782b4b758cc756975356873ce..b338febcaf87c398b4ca9a3fb57a0762267cc8ea 100755 (executable)
@@ -2632,9 +2632,9 @@ class depgraph:
                                                mydbapi.aux_get(pkg_key, ["IUSE"])[0].split()))
 
                                        forced_flags = set()
-                                       if not binary_package:
-                                               forced_flags.update(pkgsettings.useforce)
-                                               forced_flags.update(pkgsettings.usemask)
+                                       pkgsettings.setcpv(pkg_key, mydb=mydbapi) # for package.use.{mask,force}
+                                       forced_flags.update(pkgsettings.useforce)
+                                       forced_flags.update(pkgsettings.usemask)
 
                                        cur_iuse = portage.unique_array(cur_iuse)
                                        cur_iuse.sort()