depgraph: fix logic in code for bug 345979
authorZac Medico <zmedico@gentoo.org>
Sat, 27 Nov 2010 08:44:11 +0000 (00:44 -0800)
committerZac Medico <zmedico@gentoo.org>
Sat, 27 Nov 2010 08:44:11 +0000 (00:44 -0800)
pym/_emerge/depgraph.py

index f2039e4e0e435816a9f2e79328d47fe31d491aad..40cb27b4020e63b307567a7b0bec30b65dc51bab 100644 (file)
@@ -3014,14 +3014,13 @@ class depgraph(object):
                                                                                        pkg.use.mask).intersection(need_disabled):
                                                                                        can_adjust_use = False
 
-                                               if can_adjust_use:
-                                                       # Above we must ensure that this package has
-                                                       # absolutely no use.force, use.mask, or IUSE
-                                                       # issues that the user typically can't make
-                                                       # adjustments to solve (see bug #345979).
-                                                       packages_with_invalid_use_config.append(pkg)
-
                                                if not use_match:
+                                                       if can_adjust_use:
+                                                               # Above we must ensure that this package has
+                                                               # absolutely no use.force, use.mask, or IUSE
+                                                               # issues that the user typically can't make
+                                                               # adjustments to solve (see bug #345979).
+                                                               packages_with_invalid_use_config.append(pkg)
                                                        continue
 
                                        #check REQUIRED_USE constraints