USE flags in the to-be-installed package's IUSE but not in currently installed
authorJason Stubbs <jstubbs@gentoo.org>
Wed, 21 Dec 2005 15:12:17 +0000 (15:12 -0000)
committerJason Stubbs <jstubbs@gentoo.org>
Wed, 21 Dec 2005 15:12:17 +0000 (15:12 -0000)
package's IUSE and not enabled were not being shown. USE_EXPAND variable names
were being shown in lower case rather than upper case.

svn path=/main/trunk/; revision=2422

bin/emerge

index 754ac9ad30506ed7a8cccbdc231c0e9c65cb851a..752d0e00aae0d6e0d65a9b1f0bc419864bde2bec 100755 (executable)
@@ -1510,7 +1510,7 @@ class depgraph:
                                                        enabled.append(red(flag))
                                        elif flag not in cur_use and flag in old_use:
                                                disabled.append(green("-"+flag)+"*")
-                                       elif is_new:
+                                       elif is_new or flag not in old_iuse:
                                                disabled.append(blue("-"+flag))
                                enabled = " ".join(enabled)
                                disabled = " ".join(disabled)
@@ -1674,7 +1674,7 @@ class depgraph:
                                        use_expand.insert(0, "USE")
                                        
                                        for key in use_expand:
-                                               verboseadd += create_use_string(key, cur_iuse_map[key], cur_use_map[key],
+                                               verboseadd += create_use_string(key.upper(), cur_iuse_map[key], cur_use_map[key],
                                                                                old_iuse_map[key], cur_use_map[key], is_new)
 
                                if "--verbose" in myopts: