Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 61036 Details for
Bug 95741
patch to add: emerge info <package(s)>
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Updated patch
emerge_info.patch (text/plain), 2.66 KB, created by
Nathaniel McCallum (RETIRED)
on 2005-06-10 22:44:18 UTC
(
hide
)
Description:
Updated patch
Filename:
MIME Type:
Creator:
Nathaniel McCallum (RETIRED)
Created:
2005-06-10 22:44:18 UTC
Size:
2.66 KB
patch
obsolete
>--- /usr/bin/emerge 2005-06-11 00:35:35.000000000 -0400 >+++ emerge 2005-06-11 01:40:46.000000000 -0400 >@@ -2832,6 +2832,8 @@ > unameout=commands.getstatusoutput("uname -mrp")[1] > print getportageversion() > print "=================================================================" >+ print " System Settings" >+ print "=================================================================" > print "System uname: "+unameout > if os.path.exists("/etc/gentoo-release"): > os.system("cat /etc/gentoo-release") >@@ -2908,6 +2910,65 @@ > if "cvs_id_string" in dir(module): > print "%s: %s" % (str(x), str(module.cvs_id_string)) > >+ # See if we can find any packages installed matching the strings >+ # passed on the command line >+ mypkgs = [] >+ for x in myfiles: >+ mypkgs = mypkgs + portage.db[portage.root]["vartree"].dbapi.match(x) >+ >+ # If some packages were found... >+ if mypkgs: >+ # Get our global settings (we only print stuff if it varies from >+ # the current config) >+ mydesiredvars = [ 'CHOST', 'CFLAGS', 'CXXFLAGS', 'USE' ] >+ mysettings = {} >+ for x in mydesiredvars: >+ if portage.settings.has_key(x): >+ mysettings["GLOBAL_" + x] = portage.settings[x] >+ else: >+ mysettings["GLOBAL_" + x] = None >+ >+ # Loop through each package >+ # Only print settings if they differ from global settings >+ diff_found = False >+ header_printed = False >+ for pkg in mypkgs: >+ >+ # Get the directory where the files are stored >+ prefix = os.path.join(portage.root, portage.VDB_PATH, pkg) >+ >+ # Get all package specific variables >+ tmp = portage.db[portage.root]["vartree"].dbapi.aux_get(pkg, mydesiredvars) >+ for i in range(len(mydesiredvars)): >+ mysettings[mydesiredvars[i]] = tmp[i] >+ >+ # If the package variable doesn't match the >+ # current global variable, something has changed >+ # so set diff_found so we know to print >+ if mysettings[mydesiredvars[i]] != mysettings["GLOBAL_" + mydesiredvars[i]]: >+ diff_found = True >+ >+ # If a difference was found, print the info for >+ # this package. >+ if diff_found: >+ >+ # If we have not yet printed the header, >+ # print it now >+ if not header_printed: >+ print "=================================================================" >+ print " Package Settings" >+ print "=================================================================" >+ header_printed = True >+ >+ # Print package info >+ print "%s was built with the following:" % pkg >+ for x in mydesiredvars: >+ if mysettings[x] != mysettings["GLOBAL_" + x]: >+ print "%s=\"%s\"" % (x, mysettings[x]) >+ print "" >+ diff_found = False >+ >+ > # SEARCH action > elif "search"==myaction: > if not myfiles:
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 95741
:
61034
| 61036