Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 41491 Details for
Bug 62898
equery --tree patch
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
the patch to equery for --tree
equery-tree.patch (text/plain), 2.08 KB, created by
scope
on 2004-10-10 15:57:29 UTC
(
hide
)
Description:
the patch to equery for --tree
Filename:
MIME Type:
Creator:
scope
Created:
2004-10-10 15:57:29 UTC
Size:
2.08 KB
patch
obsolete
>99a100,101 >> elif x in ["--tree"]: >> opts["tree"] = 1 >127,132c129,162 >< for name in cnt: >< print fileAsStr(name, >< cnt[name], >< showType=opts["showType"], >< showTimestamp=opts["showTimestamp"], >< showMD5=opts["showMD5"]) >--- >> # it errors otherwise if --tree isn't specified >> if opts.has_key("tree"): >> sorted = cnt.keys() >> sorted.sort() >> last = [] >> for package in sorted: >> c = package.split( "/" )[1:] >> if cnt[package][0] == "dir": >> if len( last ) == 0: >> last = c >> print green( " /" + c[0] ) >> continue >> numol = 0 >> for d in c: >> if d in last: >> numol = last.index( d ) + 1 >> continue >> last = c >> if len( last ) == 1: >> print green( " /" + last[0] ) >> continue >> print " " * ( numol * 3 ) + bold( "> " ) + green( "/" + last[-1] ) >> elif cnt[package][0] == "obj": >> bl = len( last ) >> print " " * ( bl * 3 ) + bold( "> " ) + turquoise( c[-1] ) >> elif cnt[package][0] == "sym": >> print " " * ( bl * 3 ) + bold( "> " ) + turquoise( c[-1] ) + bold( " -> " ) + turquoise( cnt[package][2] ) >> else: >> for name in cnt: >> print fileAsStr(name, >> cnt[name], >> showType=opts["showType"], >> showTimestamp=opts["showTimestamp"], >> showMD5=opts["showMD5"]) >145,146c175,178 >< " " + yellow("--md5sum") + " - append md5sum\n" + \ >< " " + yellow("--type") + " - prepend file type" >--- >> " " + yellow("--md5sum") + " - append md5sum\n" + \ >> " " + yellow("--type") + " - prepend file type\n" + \ >> " " + yellow("--tree") + " - display results in a tree\n" >>
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 62898
:
38955
| 41491