Fix selective logic to work properly with masked packages.
authorZac Medico <zmedico@gentoo.org>
Tue, 23 Oct 2007 23:11:33 +0000 (23:11 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 23 Oct 2007 23:11:33 +0000 (23:11 -0000)
svn path=/main/trunk/; revision=8262

pym/_emerge/__init__.py

index 4cea918908b213b0bfd2a8e4fd58fc3e046b59af..2eb7e0b5c1c6c5ea6b24ff8bda164a13906a12c9 100644 (file)
@@ -2017,6 +2017,8 @@ class depgraph(object):
                                                                # masked by corruption
                                                                continue
                                        if not installed:
+                                               if myarg:
+                                                       found_available_arg = True
                                                try:
                                                        if not visible(pkgsettings, cpv, metadata,
                                                                built=built, installed=installed):
@@ -2100,8 +2102,6 @@ class depgraph(object):
                                                        forced_flags, old_use, old_iuse,
                                                        cur_use, cur_iuse)
                                        if not installed:
-                                               if myarg:
-                                                       found_available_arg = True
                                                must_reinstall = empty or \
                                                        (myarg and not selective)
                                                if not reinstall_for_flags and \