Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 53198 Details for
Bug 84884
[PATCH] Misc. use.[local.]desc enhancements
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
use_desc_checker
use_desc_checker (text/plain), 1.17 KB, created by
TGL
on 2005-03-11 10:57:23 UTC
(
hide
)
Description:
use_desc_checker
Filename:
MIME Type:
Creator:
TGL
Created:
2005-03-11 10:57:23 UTC
Size:
1.17 KB
patch
obsolete
>#!/usr/bin/python > >import sys,getopt,string >from types import * >sys.path.insert(0, "/usr/lib/portage/pym") >from portage import settings >import portage_use_desc >from output import * > >use_desc = portage_use_desc.use_desc(settings["PORTDIR"]) > >def print_dict(dict): > myflagkeys=dict.keys() > myflagkeys.sort() > for flag in myflagkeys: > if flag in use_desc.desc: > print teal(flag),"-",use_desc.desc[flag] > else: > print teal(flag) > mypkgkeys=dict[flag].keys() > mypkgkeys.sort() > for pkg in mypkgkeys: > print " ",darkgreen(pkg),"-",use_desc.local_desc[pkg][flag] > print > >def check_special(): > mydict = use_desc.get_all_special_flags() > if mydict: > print > print blue("These are local USE flags which also have a global description:") > print > print_dict(mydict) > >def check_multiple(mult): > mydict = use_desc.get_multiple_local_flags(mult) > if mydict: > print > print blue("These are local USE flags which are used more than %d times:"%mult) > print > print_dict(mydict) > >opts, args = getopt.getopt(sys.argv[1:], "sm:", ["special", "multiple"]) >for o, a in opts: > if o in ("-s", "--special"): > check_special() > elif o in ("-m", "--multiple"): > check_multiple(string.atoi(a)) >sys.exit(0)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 84884
:
53193
|
53194
|
53195
|
53196
|
53197
|
53198
|
71423
|
71424
|
71425
|
71426
|
71427
|
71428
|
81282