Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 92023 Details for
Bug 140731
[patch] port of output-related efuncs from /sbin/functions.sh for output.py
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
use ebegin and eend for checksums
checksums.patch (text/plain), 2.15 KB, created by
Zac Medico
on 2006-07-17 13:15:52 UTC
(
hide
)
Description:
use ebegin and eend for checksums
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2006-07-17 13:15:52 UTC
Size:
2.15 KB
patch
obsolete
>Index: pym/portage.py >=================================================================== >--- pym/portage.py (revision 3911) >+++ pym/portage.py (working copy) >@@ -2086,8 +2086,11 @@ > os.unlink(mysettings["DISTDIR"]+"/"+myfile) > fetched=0 > else: >+ eout = output.EOutput() >+ eout.quiet = mysettings.get("PORTAGE_QUIET", None) == "1" > for x_key in mydigests[myfile].keys(): >- writemsg(">>> Previously fetched file: "+str(myfile)+" "+x_key+" ;-)\n") >+ eout.ebegin("Previously fetched: %s %s ;-)" % (myfile, x_key)) >+ eout.eend(0) > fetched=2 > break #No need to keep looking for this file, we have it! > else: >@@ -2326,29 +2329,33 @@ > if strict: > return 0 > mf = Manifest(pkgdir, mysettings["DISTDIR"]) >- okaymsg = " ;-)\n" >+ eout = output.EOutput() >+ eout.quiet = mysettings.get("PORTAGE_QUIET", None) == "1" > try: >- writemsg_stdout(">>> checking ebuild checksums") >+ eout.ebegin("checking ebuild checksums ;-)") > mf.checkTypeHashes("EBUILD") >- writemsg_stdout(okaymsg) >- writemsg_stdout(">>> checking auxfile checksums") >+ eout.eend(0) >+ eout.ebegin("checking auxfile checksums ;-)") > mf.checkTypeHashes("AUX") >- writemsg_stdout(okaymsg) >- writemsg_stdout(">>> checking miscfile checksums") >+ eout.eend(0) >+ eout.ebegin("checking miscfile checksums ;-)") > mf.checkTypeHashes("MISC", ignoreMissingFiles=True) >- writemsg_stdout(okaymsg) >+ eout.eend(0) > for f in myfiles: >- writemsg_stdout(">>> checking %s" % f) >+ eout.ebegin("checking %s ;-)" % f) > mf.checkFileHashes(mf.findFile(f), f) >- writemsg_stdout(okaymsg) >+ eout.eend(0) > except KeyError, e: >+ eout.eend(1) > writemsg("\n!!! Missing digest for %s\n" % str(e), noiselevel=-1) > return 0 > except portage_exception.FileNotFound, e: >+ eout.eend(1) > writemsg("\n!!! A file listed in the Manifest could not be found: %s\n" % str(e), > noiselevel=-1) > return 0 > except portage_exception.DigestException, e: >+ eout.eend(1) > writemsg("\n!!! Digest verification failed:\n", noiselevel=-1) > writemsg("!!! %s\n" % e.value[0], noiselevel=-1) > writemsg("!!! Reason: %s\n" % e.value[1], noiselevel=-1)
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 140731
:
91961
| 92023 |
92066