Remove the PKG_*ARG* color classes in order to simplify things since it's questionabl...
authorZac Medico <zmedico@gentoo.org>
Fri, 6 Jul 2007 03:10:45 +0000 (03:10 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 6 Jul 2007 03:10:45 +0000 (03:10 -0000)
svn path=/main/branches/2.1.2/; revision=7175

bin/emerge
man/color.map.5
pym/output.py

index 0b061b735bf51a3d3ca2fc5709d728ef04f18f04..d850b273698e4b5b9ecd05cf1d0b7161a4b9ba02 100755 (executable)
@@ -2981,54 +2981,37 @@ class depgraph:
                                root_config = self.roots[myroot]
                                system_set = root_config.sets["system"]
                                world_set  = root_config.sets["world"]
-                               args_set = self._sets["args"]
 
-                               pkg_arg = False
                                pkg_system = False
                                pkg_world = False
                                try:
-                                       if myroot == self.target_root:
-                                               pkg_arg = args_set.findAtomForPackage(pkg_key, metadata)
                                        pkg_system = system_set.findAtomForPackage(pkg_key, metadata)
                                        pkg_world  = world_set.findAtomForPackage(pkg_key, metadata)
-                                       if not pkg_world and myroot == self.target_root:
+                                       if not pkg_world and myroot == self.target_root and \
+                                               favorites_set.findAtomForPackage(pkg_key, metadata):
                                                # Maybe it will be added to world now.
-                                               pkg_world = favorites_set.findAtomForPackage(pkg_key, metadata)
+                                               if create_world_atom(pkg_key, metadata,
+                                                       favorites_set, root_config.sets, portdb):
+                                                       pkg_world = True
                                except portage_exception.InvalidDependString:
                                        # This is reported elsewhere if relevant.
                                        pass
 
                                def pkgprint(pkg):
                                        if pkg_merge:
-                                               if pkg_arg:
-                                                       if pkg_world:
-                                                               return colorize("PKG_MERGE_ARG_WORLD", pkg)
-                                                       elif pkg_system:
-                                                               return colorize("PKG_MERGE_ARG_SYSTEM", pkg)
-                                                       else:
-                                                               return colorize("PKG_MERGE_ARG", pkg)
+                                               if pkg_world:
+                                                       return colorize("PKG_MERGE_WORLD", pkg)
+                                               elif pkg_system:
+                                                       return colorize("PKG_MERGE_SYSTEM", pkg)
                                                else:
-                                                       if pkg_world:
-                                                               return colorize("PKG_MERGE_WORLD", pkg)
-                                                       elif pkg_system:
-                                                               return colorize("PKG_MERGE_SYSTEM", pkg)
-                                                       else:
-                                                               return colorize("PKG_MERGE", pkg)
+                                                       return colorize("PKG_MERGE", pkg)
                                        else:
-                                               if pkg_arg:
-                                                       if pkg_world:
-                                                               return colorize("PKG_NOMERGE_ARG_WORLD", pkg)
-                                                       elif pkg_system:
-                                                               return colorize("PKG_NOMERGE_ARG_SYSTEM", pkg)
-                                                       else:
-                                                               return colorize("PKG_NOMERGE_ARG", pkg)
+                                               if pkg_world:
+                                                       return colorize("PKG_NOMERGE_WORLD", pkg)
+                                               elif pkg_system:
+                                                       return colorize("PKG_NOMERGE_SYSTEM", pkg)
                                                else:
-                                                       if pkg_world:
-                                                               return colorize("PKG_NOMERGE_WORLD", pkg)
-                                                       elif pkg_system:
-                                                               return colorize("PKG_NOMERGE_SYSTEM", pkg)
-                                                       else:
-                                                               return colorize("PKG_NOMERGE", pkg)
+                                                       return colorize("PKG_NOMERGE", pkg)
 
                                if x[1]!="/":
                                        if myoldbest:
index 7f2b03c6eb62d3b05d58b3fb9e9bf4d681153f10..7f4cfde0b46e5ab4e1d50556487accd71e2a75de 100644 (file)
@@ -31,49 +31,25 @@ Defines color used for numbers used in merge progress lists.
 \fBPKG_MERGE\fR = \fI"0x00AA00"\fR
 Defines color used for packages planned to be merged.
 .TP
-\fBPKG_MERGE_ARG\fR = \fI"0x00AA00"\fR
-Defines color used for packages planned to be merged and given as command line
-arguments.
-.TP
-\fBPKG_MERGE_SYSTEM\fR = \fI"0x55FF55"\fR
+\fBPKG_MERGE_SYSTEM\fR = \fI"0x00AA00"\fR
 Defines color used for packages planned to be merged and belonging to
 system set.
 .TP
-\fBPKG_MERGE_ARG_SYSTEM\fR = \fI"0x55FF55"\fR
-Defines color used for system packages planned to be merged and given as
-command line arguments.
-.TP
 \fBPKG_MERGE_WORLD\fR = \fI"0x55FF55"\fR
 Defines color used for packages planned to be merged and belonging to
 world set.
 .TP
-\fBPKG_MERGE_ARG_WORLD\fR = \fI"0x55FF55"\fR
-Defines color used for world packages planned to be merged and given as
-command line arguments.
-.TP
 \fBPKG_NOMERGE\fR = \fI"0x0000AA"\fR
 Defines color used for packages not planned to be merged.
 .TP
-\fBPKG_NOMERGE_ARG\fR = \fI"0x0000AA"\fR
-Defines color used for packages not planned to be merged and given as command
-line arguments.
-.TP
-\fBPKG_NOMERGE_SYSTEM\fR = \fI"0x5555FF"\fR
+\fBPKG_NOMERGE_SYSTEM\fR = \fI"0x0000AA"\fR
 Defines color used for packages not planned to be merged and belonging to
 system set.
 .TP
-\fBPKG_NOMERGE_ARG_SYSTEM\fR = \fI"0x5555FF"\fR
-Defines color used for system packages not planned to be merged and given as
-command line arguments.
-.TP
 \fBPKG_NOMERGE_WORLD\fR = \fI"0x5555FF"\fR
 Defines color used for packages not planned to be merged and belonging to
 world set.
 .TP
-\fBPKG_NOMERGE_ARG_WORLD\fR = \fI"0x5555FF"\fR
-Defines color used for world packages not planned to be merged and given as
-command line arguments.
-.TP
 \fBSECURITY_WARN\fR = \fI"0xFF5555"\fR
 Defines color used for security warnings.
 .TP
index 2079bf6d991dcb86b6739baaf5ecdb166847271e..3a1bce4e076bc06c7bd27f70c5d136c9694004bd 100644 (file)
@@ -142,17 +142,11 @@ codes["UNMERGE_WARN"]            = codes["red"]
 codes["SECURITY_WARN"]           = codes["red"]
 codes["MERGE_LIST_PROGRESS"]     = codes["yellow"]
 codes["PKG_MERGE"]               = codes["darkgreen"]
-codes["PKG_MERGE_ARG"]           = codes["darkgreen"]
-codes["PKG_MERGE_SYSTEM"]        = codes["green"]
+codes["PKG_MERGE_SYSTEM"]        = codes["darkgreen"]
 codes["PKG_MERGE_WORLD"]         = codes["green"]
-codes["PKG_MERGE_ARG_SYSTEM"]    = codes["green"]
-codes["PKG_MERGE_ARG_WORLD"]     = codes["green"]
 codes["PKG_NOMERGE"]             = codes["darkblue"]
-codes["PKG_NOMERGE_ARG"]         = codes["darkblue"]
-codes["PKG_NOMERGE_SYSTEM"]      = codes["blue"]
+codes["PKG_NOMERGE_SYSTEM"]      = codes["darkblue"]
 codes["PKG_NOMERGE_WORLD"]       = codes["blue"]
-codes["PKG_NOMERGE_ARG_SYSTEM"]  = codes["blue"]
-codes["PKG_NOMERGE_ARG_WORLD"]   = codes["blue"]
 
 def parse_color_map(onerror=None):
        """