Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 21698 Details for
Bug 35071
More information in etcat -d (package status)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to provide suggested functionality
etcat.patch (text/plain), 2.28 KB, created by
Ed Catmur
on 2003-12-04 10:03:08 UTC
(
hide
)
Description:
Patch to provide suggested functionality
Filename:
MIME Type:
Creator:
Ed Catmur
Created:
2003-12-04 10:03:08 UTC
Size:
2.28 KB
patch
obsolete
>--- files/scripts/etcat 2003-08-15 13:23:44.000000000 +0100 >+++ /usr/bin/etcat 2003-12-04 04:55:21.000000000 +0000 >@@ -889,7 +889,71 @@ > match_depend[x+"/"+dep] = match.groups() > > if match_depend.has_key(x+"/"+dep): >- print turquoise("*"), white(x+"/"+dep) >+ >+ package = x+"/"+portage.pkgsplit(dep)[0] >+ state = [] >+ color = green >+ unstable = 0 >+ overlay = "" >+ tag = "-" >+ >+ # check if masked >+ if not portage.portdb.visible([x+"/"+dep]): >+ state.append(red("M")) >+ color = red >+ tag = "M" >+ else: >+ state.append(" ") >+ >+ # check if in unstable >+ try: >+ ver_keywords = portage.db["/"]["porttree"].dbapi.aux_get(x+"/"+dep,["KEYWORDS"]) >+ except KeyError: >+ ver_keywords = [""] >+ keywords_list = ver_keywords[0].split() >+ >+ if "~" + portage.settings["ARCH"] in keywords_list: >+ state.append(yellow("~")) >+ if color != red: >+ color = yellow >+ tag = "~" >+ unstable = 1 >+ else: >+ state.append(" ") >+ >+ # check if installed >+ if portage.dblink(x,dep,"/").exists(): >+ state.append(turquoise("I")) >+ color = turquoise >+ tag = "*" >+ else: >+ state.append(" ") >+ # check if another version is installed >+ latest_package = portage.db["/"]["vartree"].dep_bestmatch(package) >+ if len(latest_package) > 0: >+ # compare versions >+ if pkgcmp(x+"/"+dep, latest_package) < 0: >+ tag = "<" >+ else: >+ tag = ">" >+ >+ # check if this is an OVERLAY ebuild >+ try: >+ if portage.portdb.oroot: >+ if os.path.exists(portage.portdb.oroot + "/" + package + "/" + dep + ".ebuild"): >+ overlay = " OVERLAY" >+ except AttributeError: >+ pass >+ >+ # print >+ try: >+ slot = portage.db["/"]["porttree"].dbapi.aux_get(x+"/"+dep,["SLOT"]) >+ if not slot: >+ slot = ["0"] >+ except KeyError: >+ slot = ["?"] >+ >+ print color(tag) + " " + "[" + string.join(state,"") + "] " + color(x+"/"+dep) + " (" + color(slot[0]) + ")" + overlay > for line in match_depend[x+"/"+dep]: > print " " + line >
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 35071
: 21698