Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39652 - Missing USE flag name in equery listing when installed and current USE flag state are not same
Summary: Missing USE flag name in equery listing when installed and current USE flag s...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High major
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-01-28 03:56 UTC by Martin Mokry
Modified: 2004-02-06 16:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokry 2004-01-28 03:56:47 UTC
When i try to list USE flags ("equery uses PACKAGE") of package, then flags with different I and U state are missing their name.


Reproducible: Always
Steps to Reproduce:
1. Modify some USE flags
2. Run: equery uses PACKAGE_USING_MODIFIED_FLAGS
3. Look at output

Actual Results:  
Example (shortened):
megac_nb root # equery uses mutt
 U I [ Found these USE variables in : net-mail/mutt-1.5.5.1 ]
 + + ssl     : Adds support for ...
 + + nls     : unknown
 + + slang   : Adds support for ...
 + + crypt   : Add support for ...
 + + imap    : Adds support for IMAP
 + - : Adds support for mbox ...
^^^^^^^^^^^

Expected Results:  
Example (shortened):
megac_nb root # equery uses mutt
 U I [ Found these USE variables in : net-mail/mutt-1.5.5.1 ]
 + + ssl     : Adds support for ...
 + + nls     : unknown
 + + slang   : Adds support for ...
 + + crypt   : Add support for ...
 + + imap    : Adds support for IMAP
 + - mbox    : Adds support for mbox ...
^^^^^^^^^^^

PATCH for this problem:

--- /usr/bin/equery	2004-01-23 09:57:13.000000000 +0100
+++ equery	2004-01-28 12:02:07.552361600 +0100
@@ -352,9 +352,9 @@
 					colour = [red, green]
 					if inuse != inused:
 						print yellow(" %s %s" % (flag[inuse], flag[inused])),
+						print yellow(u.ljust(maxflag_len)),
 					else:
 						print " %s %s" % (flag[inuse], flag[inused]),
-
 						print colour[inuse](u.ljust(maxflag_len)),
 
 					# print description
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2004-02-06 15:43:36 UTC
fixed for pre6
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2004-02-06 16:47:55 UTC
pre6 is out now