Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 65504 Details for
Bug 83379
emerge unmerge is very slow
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
optimization for in place checksum of files rejected by prelink
copy-optimization.patch (text/plain), 1.43 KB, created by
Zac Medico
on 2005-08-09 00:26:33 UTC
(
hide
)
Description:
optimization for in place checksum of files rejected by prelink
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2005-08-09 00:26:33 UTC
Size:
1.43 KB
patch
obsolete
>Index: portage-2.0.51.22/pym/portage_checksum.py >=================================================================== >--- portage-2.0.51.22.orig/pym/portage_checksum.py >+++ portage-2.0.51.22/pym/portage_checksum.py >@@ -111,24 +111,18 @@ def perform_checksum(filename, hash_func > > if calc_prelink and prelink_capable: > mylock = portage_locks.lockfile(prelink_tmpfile, wantnewlockfile=1) >- # Create non-prelinked temporary file to md5sum. >- # Raw data is returned on stdout, errors on stderr. >- # Non-prelinks are just returned. >- try: >- shutil.copy2(filename,prelink_tmpfile) >- except SystemExit, e: >- raise >- except Exception,e: >- portage_util.writemsg("!!! Unable to copy file '"+str(filename)+"'.\n") >- portage_util.writemsg("!!! "+str(e)+"\n") >- sys.exit(1) >- portage_exec.spawn(PRELINK_BINARY+" --undo "+prelink_tmpfile,fd_pipes={}) >- myfilename=prelink_tmpfile >+ # Create non-prelinked temporary file to checksum. >+ # Files rejected by prelink are summed in place. >+ retval=portage_exec.spawn([PRELINK_BINARY,"--undo","-o",prelink_tmpfile,filename],fd_pipes={}) >+ if retval==0: >+ #portage_util.writemsg(">>> prelink checksum '"+str(filename)+"'.\n") >+ myfilename=prelink_tmpfile > > myhash, mysize = hash_function(myfilename) > > if calc_prelink and prelink_capable: >- os.unlink(prelink_tmpfile) >+ if os.path.exists(prelink_tmpfile): >+ os.unlink(prelink_tmpfile) > portage_locks.unlockfile(mylock) > > return (myhash,mysize)
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 83379
: 65504 |
65568